mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
CI job: build, test and self-evaluate test results
This commit is contained in:
parent
e97dbdd3e5
commit
e516b7cf46
5 changed files with 84 additions and 21 deletions
13
package.json
13
package.json
|
|
@ -10,7 +10,7 @@
|
|||
"format-check": "prettier --check **/*.ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"package": "ncc build --source-map --license licenses.txt",
|
||||
"test": "jest",
|
||||
"test": "jest --ci --reporters=default --reporters=jest-junit",
|
||||
"all": "npm run build && npm run format && npm run lint && npm run package && npm test",
|
||||
"dart-fixture": "cd \"reports/dart\" && dart test --file-reporter=\"json:../../__tests__/fixtures/dart-json.json\"",
|
||||
"dotnet-fixture": "dotnet test reports/dotnet/DotnetTests.XUnitTests --logger \"trx;LogFileName=../../../../__tests__/fixtures/dotnet-trx.trx\"",
|
||||
|
|
@ -49,9 +49,20 @@
|
|||
"eslint-plugin-jest": "^24.0.2",
|
||||
"jest": "^24.9.0",
|
||||
"jest-circus": "^26.6.1",
|
||||
"jest-junit": "^12.0.0",
|
||||
"js-yaml": "^3.14.0",
|
||||
"prettier": "2.1.2",
|
||||
"ts-jest": "^24.3.0",
|
||||
"typescript": "^4.0.3"
|
||||
},
|
||||
"jest-junit": {
|
||||
"suiteName": "jest tests",
|
||||
"outputDirectory": "__tests__/__results__",
|
||||
"outputName": "jest-junit.xml",
|
||||
"ancestorSeparator": " › ",
|
||||
"uniqueOutputName": "false",
|
||||
"suiteNameTemplate": "{filepath}",
|
||||
"classNameTemplate": "{classname}",
|
||||
"titleTemplate": "{title}"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue