Add test result report.

This commit is contained in:
Oliver Rümpelein 2020-12-30 22:37:34 +01:00
parent 02214b507e
commit df7915790b
4 changed files with 43 additions and 1 deletions

View file

@ -35,6 +35,11 @@ test:
- npm test - npm test
cache: cache:
<<: *global_cache <<: *global_cache
artifacts:
when: always
reports:
junit:
- results.xml
build: build:
stage: build stage: build

25
package-lock.json generated
View file

@ -3788,6 +3788,25 @@
"integrity": "sha512-8uQYa7zJN8hq9z+g8z1bqCfdC8eoDAeVnM5sfqs7KHv9/ifoJ500m018fpFc7RDaO6SWCLCXwo/wPSNcdYTgcw==", "integrity": "sha512-8uQYa7zJN8hq9z+g8z1bqCfdC8eoDAeVnM5sfqs7KHv9/ifoJ500m018fpFc7RDaO6SWCLCXwo/wPSNcdYTgcw==",
"dev": true "dev": true
}, },
"jasmine-reporters": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/jasmine-reporters/-/jasmine-reporters-2.3.2.tgz",
"integrity": "sha512-u/7AT9SkuZsUfFBLLzbErohTGNsEUCKaQbsVYnLFW1gEuL2DzmBL4n8v90uZsqIqlWvWUgian8J6yOt5Fyk/+A==",
"dev": true,
"requires": {
"mkdirp": "^0.5.1",
"xmldom": "^0.1.22"
}
},
"jasmine-xml-reporter": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/jasmine-xml-reporter/-/jasmine-xml-reporter-1.2.1.tgz",
"integrity": "sha1-fKoqUYAv7+2+JLPqinrUJ8nqfbM=",
"dev": true,
"requires": {
"jasmine-reporters": "^2.2.0"
}
},
"js-base64": { "js-base64": {
"version": "2.6.4", "version": "2.6.4",
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz", "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.6.4.tgz",
@ -7027,6 +7046,12 @@
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
"dev": true "dev": true
}, },
"xmldom": {
"version": "0.1.31",
"resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.31.tgz",
"integrity": "sha512-yS2uJflVQs6n+CyjHoaBmVSqIDevTAWrzMmjG1Gc7h1qQ7uVozNhEPJAwZXWyGQ/Gafo3fCwrcaokezLPupVyQ==",
"dev": true
},
"xtend": { "xtend": {
"version": "4.0.2", "version": "4.0.2",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",

View file

@ -12,7 +12,7 @@
"update": "npm install --save-dev git+https://git.f3l.de/dungeonslayers/foundry-pc-types.git#f3l-fixes", "update": "npm install --save-dev git+https://git.f3l.de/dungeonslayers/foundry-pc-types.git#f3l-fixes",
"lint": "eslint 'src/**/*.ts' --cache", "lint": "eslint 'src/**/*.ts' --cache",
"lint:fix": "eslint 'src/**/*.ts' --cache --fix", "lint:fix": "eslint 'src/**/*.ts' --cache --fix",
"test": "ts-node ./node_modules/jasmine/bin/jasmine" "test": "ts-node ./node_modules/jasmine-xml-reporter/bin/jasmine --junitreport"
}, },
"author": "", "author": "",
"license": "", "license": "",
@ -34,6 +34,7 @@
"gulp-typescript": "^6.0.0-alpha.1", "gulp-typescript": "^6.0.0-alpha.1",
"husky": "^4.3.6", "husky": "^4.3.6",
"jasmine": "^3.6.3", "jasmine": "^3.6.3",
"jasmine-xml-reporter": "^1.2.1",
"json-stringify-pretty-compact": "^2.0.0", "json-stringify-pretty-compact": "^2.0.0",
"lint-staged": "^10.5.3", "lint-staged": "^10.5.3",
"prettier": "^2.2.1", "prettier": "^2.2.1",

11
results.xml Normal file
View file

@ -0,0 +1,11 @@
<?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>