Create explicit ci test task.

This commit is contained in:
Oliver Rümpelein 2020-12-30 22:41:55 +01:00
parent df7915790b
commit c5fe9d6963
4 changed files with 6 additions and 13 deletions

3
.gitignore vendored
View file

@ -14,3 +14,6 @@ dist
# ESLint
.eslintcache
# Junit results
results.xml

View file

@ -32,7 +32,7 @@ lint:
test:
stage: test
script:
- npm test
- npm test:ci
cache:
<<: *global_cache
artifacts:

View file

@ -12,7 +12,8 @@
"update": "npm install --save-dev git+https://git.f3l.de/dungeonslayers/foundry-pc-types.git#f3l-fixes",
"lint": "eslint 'src/**/*.ts' --cache",
"lint:fix": "eslint 'src/**/*.ts' --cache --fix",
"test": "ts-node ./node_modules/jasmine-xml-reporter/bin/jasmine --junitreport"
"test": "ts-node ./node_modules/jasmine/bin/jasmine",
"test:ci": "ts-node ./node_modules/jasmine-xml-reporter/bin/jasmine --junitreport"
},
"author": "",
"license": "",

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites disabled="0" errors="0" failures="0" tests="6" time="0.025">
<testsuite name="DS4 Rolls" timestamp="2020-12-30T22:36:25" hostname="localhost" time="0.025" errors="0" tests="6" skipped="0" disabled="0" failures="0">
<testcase classname="DS4 Rolls" name="Should do a proper single failure roll, upper bound" time="0.012" />
<testcase classname="DS4 Rolls" name="Should do a proper single failure roll, lower bound" time="0.001" />
<testcase classname="DS4 Rolls" name="Should do a proper single success roll on success edge case." time="0.001" />
<testcase classname="DS4 Rolls" name="Should do a proper single success roll." time="0.002" />
<testcase classname="DS4 Rolls" name="Should do a proper single crit failure roll." time="0.002" />
<testcase classname="DS4 Rolls" name="Should do a proper single crit success roll." time="0.001" />
</testsuite>
</testsuites>