-
Notifications
You must be signed in to change notification settings - Fork 88
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
Reports showing duplicate entries on test success #398
Comments
I found issue #71 reported this issue fixed but I still have the problem, happy to help out where I can. |
Trying to provide more information where I can, but I've looked at the logic in one of the simpler checks (EIDSCA.AF01) which seems to all be correct. I'm not sure if the problem here comes down to the 'Add-MtTestResultDetail' script, as in our environment every result is duplicated. Once for success, once for failure. If the test is something we have failed, a failure is reported twice. |
It is happening to me as well for all the tests, it started to happen once I have changed the main.yml file in the pipeline (and unfortunately I was never been able to restore the single occurrence of tests) |
Can you please try running again? I just published a new version of the module that should have this cmdlet. |
Still seems a problem unfortunately. Here's a sample output we have from the JSON and a visual from the step summary. Whilst now reporting success, the results are still duplicated. All I can notice from the output is how the ScriptBlock line is slightly different.
|
I have the same issue, maybe you can change the "motd" to only MAESTER, and include the version (including build version) as normal text. |
I think this bug is related to the import of the Github action, with duplicate tests. So I run my own tests, and it's combined with all the tests from the main maester project as well. I think when I delete all my tests, it will still run all the maester supplied ones. |
Can confirm this is the case. The default run for the GitHub action includes a checkout for all public tests. Setting include_public_tests to false fixes that! |
@BenStreet365 shouldn't this be documented then somewhere? |
@Oppedijk Yes, thinking about it that would be a good idea. I'll look at how I can tweak the documentation tomorrow for the GitHub Actions setup. |
Apologies in advance if this has already been reported, I thought I saw a similar issue but can't seem to find it.
I have implemented Maester through GitHub Actions using the documentation. The majority of our tests are showing duplicate responses in the results, in both markdown and HTML. Clicking into the failed result shows it was actually a success. This is version 0.2.0 of the Action but I also tested the latest preview.
I can look at the script too if someone with deeper knowledge of the tool is able to point out where the failure could be :)
The text was updated successfully, but these errors were encountered: