mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-03 03:35:22 -08:00
CI job: build, test and self-evaluate test results
This commit is contained in:
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}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user