diff --git a/.gitignore b/.gitignore index c6cbdc6..18070eb 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ dist .rpt2_cache demo/**/*.js demo/**/*.js.map +junit.xml diff --git a/circle.yml b/circle.yml index 5e09794..9199380 100644 --- a/circle.yml +++ b/circle.yml @@ -17,12 +17,16 @@ jobs: - run: name: test command: npm run test:ci + environment: + JEST_JUNIT_OUTPUT: jest/test-report.xml - run: name: lint command: npm run lint - run: name: codecov command: bash <(curl -s https://codecov.io/bash) + - store_test_results: + path: jest release: docker: - image: circleci/node:10 diff --git a/package-lock.json b/package-lock.json index 6b39075..d73fd21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4246,6 +4246,18 @@ "throat": "^4.0.0" } }, + "jest-junit": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/jest-junit/-/jest-junit-6.3.0.tgz", + "integrity": "sha512-3PH9UkpaomX6CUzqjlnk0m4yBCW/eroxV6v61OM6LkCQFO848P3YUhfIzu8ypZSBKB3vvCbB4WaLTKT0BrIf8A==", + "dev": true, + "requires": { + "jest-validate": "^24.0.0", + "mkdirp": "^0.5.1", + "strip-ansi": "^4.0.0", + "xml": "^1.0.1" + } + }, "jest-leak-detector": { "version": "24.0.0", "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.0.0.tgz", @@ -10989,6 +11001,12 @@ "async-limiter": "~1.0.0" } }, + "xml": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz", + "integrity": "sha1-eLpyAgApxbyHuKgaPPzXS0ovweU=", + "dev": true + }, "xml-name-validator": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", diff --git a/package.json b/package.json index 134610e..c125699 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,8 @@ "build-cmjs": "tsc -P ./tsconfig-build.json", "build:docs": "typedoc src && touch docs/.nojekyll", "test": "jest", + "test:ci": "jest --ci --runInBand --reporters=default --reporters=jest-junit --coverage", "test:watch": "jest --watch", - "test:prod": "npm run test -- --coverage --no-cache", "semantic-release": "cd dist && semantic-release" }, "devDependencies": { @@ -50,6 +50,7 @@ "eslint-plugin-import": "2.16.0", "fs-extra": "7.0.1", "jest": "24.1.0", + "jest-junit": "6.3.0", "npm-run-all": "4.1.5", "rimraf": "2.6.3", "rollup": "1.4.0",