-
Notifications
You must be signed in to change notification settings - Fork 5
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
Skipped tests are marked as with the passed status in the testplan #31
Comments
Thanks for raising this. To help clarify if this is an issue converting your mocha test results into a common format, or a mismatch when publishing to the Test Plan:
|
These are new tests or tests that were marked previously as passed. Both have the same behavior. In attachment you can find the junit file. Does that help? |
Ok. I think the issue might be a bug in the test-parser library that I'm using to convert test-formats into a common format. Your skipped tests in the JUnit xml results appear as: <testcase ....>
<skipped/>
</testcase> I think the test-parser library is expecting an attribute instead of an element. I'll do some research to determine if this is a variant of the JUnit format (there are lots of variants) and log a bug for this. |
@AnnEnervalis just an update - the above defect has been fixed, now we're just waiting on a new release of the package. |
@AnnEnervalis new version published. I'll leave this open and hope to hear from you soon. |
That's frustrating! Let me see if I can repurpose your test results to one of my Test Plans and see if I can reproduce the issue. There was a bug in the test-parser library for Skipped tests, hopefully there isn't one for errors too. But looking at my code, the error could be on my end too. I notice in your test results that 146035 appears more than once, so that might also be contributing to some of the confusion. One of the results is Skipped, another is Error. |
can you provide the YAML you're using for my extension? |
The fact that you see it 2 times is because I rerun failed tests. |
I mention the duplicates because the matching strategy will match the first test result and discard the second. I can probably add some additional logging to reflect this. Your test framework automatically retries tests and logs them in the result file more than once? |
I'm having some challenges reproducing your issue. I took your jUnit xml and reduced it to 5 test cases: test-cleansed.zip:
I published this test file using the current version of the extension and my test plan shows the results being reflected with the above. I also repeated my experiments by resetting the test cases to "Active" to ensure that they were be modified by the extension. The progress report reflects the changes as well. I'll release a version shortly with some additional debug logging to help you troubleshoot, but I would like to confirm that the Skipped tests are being reported as Not Executed and that we're not trying to solve multiple issues simultaneously. To do this, can you run a test suite with only a single skipped test and publish that against the test plan to rule out issues with duplicates or other interfering symptoms? |
@AnnEnervalis the initial defect of junit skipped tests was resolved and released in 0.1.14 Marking this as closed as I was not able to reproduce your issue after the fix. If you continue to experience issues, please comment here or open a new defect. |
Description
I have a number of skipped tests that don't run yet.
You can see in the tests tab that they are effectivaly not run:
However, in the testplan the tests are marked as passed:
Can you mark them as 'NotExecuted' please?
Environment Details
provide details about your pipeline environment
If you need more information, don't hesitate to ask.
(Thanks for this plugin, it really helps)
The text was updated successfully, but these errors were encountered: