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

[Ignore] attribute on test causes "Object reference not set to an instance of an object" exception #65

Open
yedidyas opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@yedidyas
Copy link

yedidyas commented Jan 15, 2025

Describe the Bug

If I have a test with [Ignore] attribute, it's mentioned in the trx output as outcome="NotExecuted" in the UnitTestResult xml object.
dotnet-trx throws an exception if such case exists in the trx file.

Steps to Reproduce

Tag a test with [Ignore] attribute and use dotnet-trx on it.

    [Ignore]
    [TestClass]
    public class YouTestClass
    {
...

Expected Behavior

Report is fully created

Exception with Stack Trace

image

Version Info

latest version

Back this issue
Back this issue

@yedidyas yedidyas added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant