-
Notifications
You must be signed in to change notification settings - Fork 316
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
negative test filter requires at least one property (trait / category) to exist within the tested assembly #841
Comments
The issue is with xunit. I opened a bug in xunit repo (xunit/xunit#1314) to track this. I am closing it here. |
Faizan2304
pushed a commit
to Faizan2304/vstest
that referenced
this issue
Jun 8, 2017
Fix: Don’t throw exception if filter property is not belong to supported property list. Later TestCaseFilterExpression.MatchTestCase() is going to handle it properly.
Faizan2304
added a commit
that referenced
this issue
Jun 9, 2017
* Issue: #841 Fix: Don’t throw exception if filter property is not belong to supported property list. Later TestCaseFilterExpression.MatchTestCase() is going to handle it properly. * Move file TestCaseFilterExpression.cs from CrossPlat to common * Address PR comment
Fixed!! |
I still have this problem, with the following environment:
Both
What did I miss? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When executing the vstest runner with a negative filter on an assembly that does not contain at least one property of the specified type, an exception occurs.
Steps to reproduce
TestCaseFilter
that has a negative check for the category property or trait.Example:
(this will call vstest.console underneath with a --TestCaseFilter and --TestAdapterPath)
Expected behavior
All tests that do not have a category property or trait should execute based on the following logic: Category!=SomeValue is true when Category is not defined
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: