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

Exclude skipped tests from calculation of total tests passed #16

Open
mgnslndh opened this issue Nov 10, 2024 · 0 comments
Open

Exclude skipped tests from calculation of total tests passed #16

mgnslndh opened this issue Nov 10, 2024 · 0 comments

Comments

@mgnslndh
Copy link

It would be nice to be able to exclude any skipped tests from the calculation of total tests passed.

image

I would like the test run above to be reported with a 100% total pass rate instead of 31,39%. Out of the test that was run, all passed. We opted out of running the skipped tests because they were not appropriate for the current envrionment.

You could configure this behavior using a setting like:

public class TyrannoportSettings : ToolSettings
    {
        /// <summary>Only passed and failed tests will be used when calculating the total pass rate.</summary>
        public bool ExcludeSkippedFromTotalPassRate { get; set; }

        /// <summary>Gets or sets the output directory to render to.</summary>
        public string? OutputBase { get; set; }
    }

And from the command line:

tyrannoport --exclude-skipped-from-total-pass-rate

Would you accept a PR for this behavior?

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

No branches or pull requests

1 participant