-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(xunit): TS query for Fact attribute
When another attribute comes after `Fact` or `ClassData`, such as `Trait`, the TS query was not selecting that test. This fixes the TS query so that it allows other attributes after the test attribute. Fixes #96
- Loading branch information
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace xunit.testproj1; | ||
|
||
public class UnitTest1 | ||
{ | ||
[Fact] | ||
[Trait("Category", "Integration")] | ||
public void Test1() | ||
{ | ||
Assert.Equal(1, 1); | ||
} | ||
} |