In VS2012 (RC, soon to be RTM) is it possible to be selective about the (nunit) unit tests that run after every build? I love this feature, but I have two test categories/assemblies - one for actual unit tests that are expected to run quickly, another for database scheme and test generation data. I do not want to run the latter after every build, though I'd like to make use of this functionality for regular unit tests. Is there any way of specifying categories/assemblies/etc. that should be executed upon a successful build? Thanks JP
Visual Studio 2012 RC - Run Unit Tests after build - Specify test categories to run
3.1k Views Asked by JP. At
2
There are 2 best solutions below
0
Gishu
On
On the test explorer window, there is a searchbox. You can specify filters - one that looks promising is called a TestFilePath filter. (Dropdown to see available filters)
e.g. FilePath:"Transaction" filters only the tests in the Transactions.cs file. You can use this to exclude the tests in the other assembly e.g. if the folder is Unit and Database. Specifying FilePath:"Unit" should work. Give it a try..
Docs: Search for "filtering" on the page here
Related Questions in UNIT-TESTING
- How to write tests for classes with inheritance
- PHPunit call magic methods
- Convert IEnumerable to IObservable with variable Period
- How to a run specific code before & after each unit test in Python
- Unit testing a class A that derives from an abstract class B
- Is there another way to unit test business logic in mvc
- Some of my tests show prepended with junit.framework
- Selenium Driver Service not found exception
- Can not convert from Class<PowerMockRunner> to Class<? extends Runner>
- AngularJS Unit Testing - multiple mocks and providers
- How to use Sinon.js FakeXMLHttpRequest with superagent?
- Get Mock with AutoMock.Create<>()
- Mock service that takes unitOfWork in constructor
- Cleanest method for creating a pytest test fixture that takes in dynamic text data
- g++ 5.1.0 not building project, clang shows unknown error
Related Questions in NUNIT
- How to programmatically tell NUnit to repeat a test?
- how to ignore a RUN test
- How to test MvvmCross MvxCommand<int> with NUnit
- How does Nunit generate TestResult.xml
- Fake calling Namespace to test reflection
- Change name of NUnit test
- When selenium test runs by Jenkins and nUnit, the browser doesn't come up however there are valid results
- I cannot debug two projects at once - one with Resharper NUnit tests
- TeamCity - The process cannot access the file * because it is being used by another process
- Nunit runsTestCase with a TestCaseSource with the first iteration having no parameters? Why?
- NUnit TestFixture with no-arg constructors
- Role Manager not enabled. Even after changing web.config
- NHibernate SchemaExport.Execute does not create table
- Why are nUnit tests just getting ignored when using TestCaseSource?
- Dependencies in Unit Tests
Related Questions in VISUAL-STUDIO-2012
- Pass multiple account variables to single parameter
- Cannot find InvalidCastException in C# Application
- Upgrading separate Project Collection Database to new TFS Version
- How to add asp.net mvc5 to visual studio express 2012 edition?
- How to deploy Windows app with SQL Server database?
- The merge tool is not showing when call Workspace.ResolveConflict method in TFS 2012
- Toggle groups based on a parameter
- SQL server 2008 with 2012 Data tools
- Accessing parent parameters from child package SSIS 2012
- How to add parameters in the comments of a method in Visual Studio after it has been generated?
- No warning on deleting a forward declared pointer (Visual Studio)
- EWS Service.FindItems() throws an exception when using SearchFilter.IsEqualTo
- Label change when button click
- SharePoint 365 Development - Visual Studio 2012 - Actions4 file
- Team Foundation 2012 not recognising changes in vb6 app
Related Questions in TEST-RUNNER
- Make Karma fail test on syntax error
- Forcing nunit console runner to use CLR 4.5
- How to run bdd cucumber 5.6 without giving feature and glue path in test runner file
- Overriding TEST_RUNNER with @override_settings
- Input Test Fixture Input not registering in Unity
- uic: Unexpected element name
- SOAPUI testrunner test properties from command line
- Why is the outcome of a manual test executed via MS test runner being put in 'In Progress' state?
- How can I run multiple parallel projects with ReadyAPI? (Command line way)
- Test runner tab disappeared in Intellij
- Setup/Teardown Not Called In Unity Test Runner & Test Is Blocked
- How can I run scenario of single Feature file in specflow
- How to execute the feature file one by one mentioned order in feature tag of testng runner class
- Microsoft Test Runner stand alone
- Test for string length in AngularJS Karma e2e test
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
@Gishu is correct. If you apply a filter to the Test Explorer, the runner will use the results of that filter list when choosing tests to run.
We will be continuing to add additional filter choices (e.g. Categories, Project, etc.) to the Test Explorer through and post-RTM. Stay tuned for more on this.