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

Run tests from TFS #11

Open
AutomationSifu opened this issue Oct 23, 2018 · 6 comments
Open

Run tests from TFS #11

AutomationSifu opened this issue Oct 23, 2018 · 6 comments

Comments

@AutomationSifu
Copy link

Is there a specific Test Filter Criteria to use when trying to run the tests from TFS for a build?

For some reason it's not picking up the tests correctly.

This has run fine in the past before using the NUnittestOrdering library.

  • It seems when I don't enter a filter it's picking up the unordered test.

Thanks!

@Sebazzz
Copy link
Owner

Sebazzz commented Oct 23, 2018 via email

@AutomationSifu
Copy link
Author

I looked at the Readme and I don't see how to set the filter. Is it in a particular section?

@Sebazzz
Copy link
Owner

Sebazzz commented Oct 23, 2018

Sorry, the NUNIT readme. You can use regular filters, and check with the GUI how to build them.

@AutomationSifu
Copy link
Author

For this item I'll take some of the complexity out by not trying to run from TFS but will try to use the filters with an NUnit runner first. Is there a way to run tests using your library with the NUnit console? I may have the incorrect name of the NUnit tool. I know the NUnit gui runner is straight forward and doesn't require filters, so I didn't think it would help with this item.

Thanks!

@Sebazzz
Copy link
Owner

Sebazzz commented Oct 30, 2018 via email

@AutomationSifu
Copy link
Author

AutomationSifu commented Aug 5, 2019

Figured this out.

Now TFS is called Azure DevOps.

In Azure Devops go to your Build pipeline and edit the VsTest - testAssemblies task.
Go to the Test filter criteria section
Enter the following text: FullyQualifiedName~Ordered.EnableTestOrdering

Note: This line will pick up all tests that are enabled (uncommented out) in your EnableTestOrdering.cs file in your Automation project.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants