test: write integration test for pytest

This commit is contained in:
Martin Fillafer 2023-03-27 10:37:08 +02:00
parent 60eba29d80
commit 3ec78ee9ff
2 changed files with 79 additions and 1 deletions

View file

@ -124,7 +124,7 @@ export class PytestJunitParser implements TestParser {
private getAbsolutePath(path: string): string {
const relativePath = this.getRelativePath(path)
for (const file of this.options.trackedFiles) {
if (file.endsWith(relativePath)) {
if (relativePath.endsWith(file)) {
return file
}
}