-
Notifications
You must be signed in to change notification settings - Fork 507
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
Prevent adding both skipped and failure elements #1123
Conversation
Hello @gchappel, thanks for creating the PR. Can you please fix the failing test? |
I'll take a look - it wasn't failing when I opened the PR but leave it with me. |
I took a very quick look at the failing test, and it seemed weird that a test would fail when I only changed the behaviour of one specific output writer (and it's associated test). So I checked out |
OK, I think I got it. When I opened this PR (Jan 21st) I am 99% sure that It seems like the tests may pull in external resources which are not under version control? It seems like there is some test data which changed and was no longer compatible with historical commit edit - yep, tests check out some artifacts from https://github.com/accurics/KaiMonkey without specifying any versions, so checking out old commits and running |
This is a potential fix to prevent both `skipped` and `failure` elements on a skipped violation in JUnit output format Fixes: tenable#1122
Thanks @patilpankaj212 for re-running the tests; once again, the KaiMonkey project has moved on, and they fail. So I will rebase on |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## master #1123 +/- ##
==========================================
- Coverage 79.57% 79.55% -0.03%
==========================================
Files 255 255
Lines 7091 7092 +1
==========================================
- Hits 5643 5642 -1
- Misses 1114 1115 +1
- Partials 334 335 +1
|
Perfect, hopefully this will make it easier for myself and/or others to contribute in future without having our PRs invalidated by a change outside of this repository in the test data; not to mention making the review process easier for yourselves. |
This is a potential fix to prevent both
skipped
andfailure
elements on a skipped violation in JUnit output formatFixes: #1122