Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config to add / remove prefix from report files #452

Closed
EnricoMi opened this issue May 26, 2023 · 1 comment · Fixed by #495
Closed

Add config to add / remove prefix from report files #452

EnricoMi opened this issue May 26, 2023 · 1 comment · Fixed by #495

Comments

@EnricoMi
Copy link
Owner

Test result files report the file name where test cases are defined. This file name is used to link annotations with the files in the git repository. Some test runners report absolute paths or paths that are not relative to the git repository root.

Those filenames have to be corrected by adding or removing a prefix path.

#35 (comment)

Examples:

"file": "/home/runner/work/mocha/mocha/test/unit/runner.spec.js",

grafik
The /home/runner/work/mocha/mocha/ prefix should be removed to make the annotation link to the repository file.

@EnricoMi
Copy link
Owner Author

This has been released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant