diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 14a089ac..833aaf80 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -76,3 +76,11 @@ jobs: - name: 📋 Test run: npm test + + - name: 📋 Test Reporter + if: ${{ always() }} + uses: dorny/test-reporter@v1 + with: + name: 📋 Unit Test + reporter: jest-junit + path: "**/junit.xml" diff --git a/.mocharc.json b/.mocharc.json index 17da492c..94c3c9d0 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,6 +1,9 @@ { - "ui": "bdd", "color": true, - "spec": "./lib", - "recursive": true + "extension": ["ts"], + "ui": "bdd", + "recursive": true, + "require": "ts-node/register", + "reporter": "mocha-junit-reporter", + "reporterOptions": ["mochaFile=./reports/junit.xml"] }