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

Refactor test results finisher tests #312

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

joseph-sentry
Copy link
Contributor

@joseph-sentry joseph-sentry commented Mar 8, 2024

Depends on: #310
This commit refactors the test results finisher tests into fixtures, all functionality expected from the finisher task is being tested:

  • failure message escaping
  • path shortening
  • failure message deduplication
  • multi env failure
  • default env failure
  • upload after another
  • comment table formatting

@codecov-staging
Copy link

codecov-staging bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found ☺️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
- Coverage   98.11%   98.10%   -0.02%     
==========================================
  Files         387      387              
  Lines       32115    31864     -251     
==========================================
- Hits        31510    31259     -251     
  Misses        605      605              
Flag Coverage Δ
integration 98.10% <100.00%> (-0.02%) ⬇️
latest-uploader-overall 98.10% <100.00%> (-0.02%) ⬇️
unit 98.10% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.24% <ø> (ø)
OutsideTasks 97.91% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

Copy link

codecov-public-qa bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b15584f) 98.11% compared to head (49d9ef8) 98.10%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
- Coverage   98.11%   98.10%   -0.02%     
==========================================
  Files         387      387              
  Lines       32115    31864     -251     
==========================================
- Hits        31510    31259     -251     
  Misses        605      605              
Flag Coverage Δ
integration 98.10% <100.00%> (-0.02%) ⬇️
latest-uploader-overall 98.10% <100.00%> (-0.02%) ⬇️
unit 98.10% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.24% <ø> (ø)
OutsideTasks 97.91% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.09%. Comparing base (b15584f) to head (49d9ef8).

✅ All tests successful. No failed tests found ☺️

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
- Coverage   98.11%   98.09%   -0.02%     
==========================================
  Files         418      418              
  Lines       32815    32564     -251     
==========================================
- Hits        32195    31944     -251     
  Misses        620      620              
Flag Coverage Δ
integration 98.10% <100.00%> (-0.02%) ⬇️
latest-uploader-overall 98.10% <100.00%> (-0.02%) ⬇️
unit 98.10% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.18% <ø> (ø)
OutsideTasks 97.91% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

This change has been scanned for critical changes. Learn more

This commit refactors the test results finisher tests into fixtures, all functionality expected from the finisher task is being tested:
- failure message escaping
- path shortening
- failure message deduplication
- multi env failure
- default env failure
- upload after another
- comment table formatting
@joseph-sentry joseph-sentry force-pushed the joseph/refactor-test-results-finisher-tests branch from b1eb2da to 49d9ef8 Compare March 19, 2024 14:23
@codecov-qa
Copy link

codecov-qa bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.10%. Comparing base (b15584f) to head (49d9ef8).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
- Coverage   98.11%   98.10%   -0.02%     
==========================================
  Files         387      387              
  Lines       32115    31864     -251     
==========================================
- Hits        31510    31259     -251     
  Misses        605      605              
Flag Coverage Δ
integration 98.10% <100.00%> (-0.02%) ⬇️
latest-uploader-overall 98.10% <100.00%> (-0.02%) ⬇️
unit 98.10% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 96.24% <ø> (ø)
OutsideTasks 97.91% <ø> (ø)
Files Coverage Δ
tasks/tests/unit/test_test_results_finisher.py 100.00% <100.00%> (ø)

@joseph-sentry joseph-sentry merged commit 6bf962c into main Mar 19, 2024
30 checks passed
@joseph-sentry joseph-sentry deleted the joseph/refactor-test-results-finisher-tests branch March 19, 2024 15:14
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.

2 participants