winterbe / jest-teamcity-reporter

Teamcity Reporter for Jest Unittest Results
https://www.npmjs.com/package/jest-teamcity-reporter
Other
50 stars 23 forks source link

Show full test path relative to project root directory #15

Closed rkostrzewski closed 6 years ago

rkostrzewski commented 6 years ago

Currently only test file name and containing folder are shown which creates issues when tests are placed in folders like tests, __tests__, etc.

This PR changes that behaviour and full paths (relative to project directory) will be shown.

Before:

##teamcity[testSuiteStarted name='tests/reducer.test.js']
...
##teamcity[testSuiteStarted name='tests/reducer.test.js']
...

After:

##teamcity[testSuiteStarted name='containers/one/tests/reducer.test.js']
...
##teamcity[testSuiteStarted name='containers/two/tests/reducer.test.js']
...
winterbe commented 6 years ago

@rkostrzewski Sorry for late response. This branch now conflicts with latest changes. Would you mind updating the code, so we can get this merged? Thanks.

winterbe commented 6 years ago

Closed due to inactivity.