My project has some Nunit tests with certain tags called categories.
For example: 32 bit app tests have x32
as tag and 64 bit app tests have x64
as tag.
Now using vstest task i am able to run tests for one category like this:
TestCategory=x32
when I want to run multiple categories in same task I gave TestCategory=x32,x64
and it didn't work. The task failed without any errors in the console.
I even tried
TestCategory=x32|x64: in this case only x64 tests are ran.
TestCategory=x32,x64: test task failed without any errors
Any idea on how to provide multiple categories ?
How to provide multiple test categories in vstest task in azure pipelines
According to the document /category option:
To use this with VS Test task, we could specify it like following:
TestCategory=x32|TestCategory=x64
Update:
but, i need to run all the tests which are present in both categories. is this possible?
If you want to run all the tests which are present in both categories, you could try to use following in the vstest task:
TestCategory=x32&TestCategory=x64