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

Make the ignored tests to be decorated with the Ignore category as well #2540

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public bool CanDecorateFrom(string tagName, TestClassGenerationContext generatio
public void DecorateFrom(string tagName, TestClassGenerationContext generationContext, CodeMemberMethod testMethod)
{
generationContext.UnitTestGeneratorProvider.SetTestMethodIgnore(generationContext, testMethod);
generationContext.UnitTestGeneratorProvider.SetTestMethodCategories(generationContext, testMethod, new[] { IGNORE_TAG });
}

public bool CanDecorateFrom(string tagName, TestClassGenerationContext generationContext)
Expand All @@ -50,6 +51,7 @@ public bool CanDecorateFrom(string tagName, TestClassGenerationContext generatio
public void DecorateFrom(string tagName, TestClassGenerationContext generationContext)
{
generationContext.UnitTestGeneratorProvider.SetTestClassIgnore(generationContext);
generationContext.UnitTestGeneratorProvider.SetTestClassCategories(generationContext, new[] { IGNORE_TAG });
}
}
}
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
3.10.1

Changes:
+ Make the ignored tests to be decorated with the Ignore category as well.

3.10

Changes:
Expand Down