I have a suite of mspec test cases that has the [Tags] attribute defined for each. I now have to create a test runner in .Net/C# that takes the tags attribute values(an array of strings) as input and runs the corresponding tests. I would like to know how I can go about doing this - just some pointers to get started.

I don't have any control over the test scripts, so cannot modify them. Also, I cannot use any third party test runners.

有帮助吗?

解决方案

Just use the bundled runner (mspec.exe) and pass the --include or --exclude parameter with a list of tags to include in the run or exclude from the run.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top