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

Allow for adding or removing test file path prefix #495

Merged
merged 8 commits into from Sep 22, 2023
Merged

Conversation

EnricoMi
Copy link
Owner

Allows to add or remove a prefix from test file paths to get annotations for test files working.

Fixes #452. Supersedes #482.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Dockerfile)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Test Files)

   145 files  ±0       13 errors  735 suites  ±0   2h 12m 37s ⏱️ ±0s
1 811 tests ±0  1 517 ✔️ ±0    73 💤 ±0  210 ±0  11 🔥 ±0 
4 117 runs  ±0  3 428 ✔️ ±0  214 💤 ±0  454 ±0  21 🔥 ±0 

For more details on these parsing errors, failures and errors, see this check.

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Test File)

97 tests  ±0   80 ✔️ ±0   3m 25s ⏱️ ±0s
  1 suites ±0   17 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Docker Image)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

Comment on lines +182 to +188
# prefix starts either with '+' or '-'
if prefix.startswith('+'):
# add prefix
return "".join([prefix[1:], file])

# remove prefix
return file[len(prefix)-1:] if file.startswith(prefix[1:]) else file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would flip this to if startsWith(-), it'll behave more naturally if someone writes test_file_prefix: /foo; or make it fail it it doesn't start with [+-].

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, [+-] is mandatory (this is now being checked).

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (macOS 11 python installed)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (macOS python 3.8)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (macOS python installed)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Linux python installed)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Linux python 3.8)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Linux 20.04 python installed)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Windows python installed)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (Windows 2019 python installed)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 21, 2023

Test Results (reference)

     135 files  ±       0       135 suites  ±0   50m 37s ⏱️ - 3m 6s
     431 tests +       9       431 ✔️ +       9         0 💤 ±0  0 ±0 
58 185 runs  +1 215  56 841 ✔️ +1 215  1 344 💤 ±0  0 ±0 

Results for commit d9787f8. ± Comparison against base commit 6ddaf27.

♻️ This comment has been updated with latest results.

@EnricoMi EnricoMi merged commit bd22544 into master Sep 22, 2023
77 checks passed
@EnricoMi EnricoMi deleted the path-prefix branch September 22, 2023 06:26
kfr2 pushed a commit to turnitin-actions/publish-unit-test-result-action that referenced this pull request Feb 13, 2024
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 this pull request may close these issues.

Add config to add / remove prefix from report files
3 participants