Questions tagged [test-runner]

187 questions
8
votes
3 answers

Run all open tests in Visual Studio

Is there an easy way to run all tests in open test classes in Visual Studio. I find that this is what I most often need to do. Mostly I use Resharpers or TestDriven.NET testrunners, and I cant find any easy way to do that in either testrunner. In…
MatteS
  • 1,542
  • 1
  • 16
  • 35
7
votes
0 answers

How to get Karma to start Chrome with a specific language?

I am using Karma as a test runner to execute my Jasmine unit tests. Is there a possibility to tell Karma that it should always start a Chrome instance with an English locale? My current Karma configuration is this: // available browser launchers:…
Benny Code
  • 51,456
  • 28
  • 233
  • 198
6
votes
1 answer

nUnit SetupFixture class in C# not being called when tests are run

nUnit SetupFixture Reference My Solution is setup like this, using SpecFlow Gherkin Features Solution - Tests Project -- Features -- Steps - Pages Project -- Pages I run the nUnit test runner using a command like this: "C:\Program Files…
jmbmage
  • 2,487
  • 3
  • 27
  • 44
6
votes
2 answers

Googletest Eclipse C++ : How to have both test and production executable?

I have a basic question regarding Googletest in Eclipse. I am using the test-runner plug in to run the Googletests. But I need to specify a binary which runs my unit tests (of course that makes sense.) The problem is that in my project I now have…
1v0
  • 342
  • 1
  • 9
5
votes
2 answers

How to test Unity Coroutines in Unity Test Runner

I'm currently developing a game in Unity 2019 and C# and I use a lot of events and coroutines for it. The coroutines are necessary because many calculations are done in them and I don't want the game to freeze during that time. Now I started to…
Nalara
  • 101
  • 1
  • 7
5
votes
1 answer

Resharper - NUnit - VS2010: Out of memory exception

When I run my nunit tests using the test runner in resharper, I get an OutOfMemory exception. It appears to me that as a test suite runs, it consumes memory over the duration of the suite, and only releases memory back when the entire set of tests…
jschank
  • 554
  • 1
  • 5
  • 16
5
votes
1 answer

How to use different Junit TestRunner in Eclipse and Ant?

I have a couple of JBehave tests that I want to run from Eclipse and Ant. In Eclipse I want to see a tree of all the different stories, scenarios and steps that are performed in the graphical output, so I added a custom runner to the tests that does…
Gandalf
  • 2,350
  • 20
  • 28
5
votes
1 answer

How do I configure VS2012 test runner to pick up and run Gallio unit tests?

I've recently upgraded to VS2012 to iron out problems ahead of my team. We use Gallio 3.3 as a unit tests framework and have numerous tests written which work in VS2010. However, VS2012 does not appear to recognise them. The VS2012 Test Explorer…
Peter
  • 5,455
  • 7
  • 46
  • 68
5
votes
2 answers

Visual Studio 2012 RC - Run Unit Tests after build - Specify test categories to run

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,…
JP.
  • 5,536
  • 7
  • 58
  • 100
4
votes
3 answers

Need a real time, automatic, background compiler and test runner for C# .Net

I have googled around and played around with test scripts (powershell/spec/nunit/msbuild). I am looking for a test runner that will monitor my code and will continuously rebuild and rerun all my tests for a solution. Currently I am using Resharper…
RBZ
  • 2,034
  • 17
  • 34
4
votes
1 answer

Why does this test trigger a Robolectric Delegate runner RuntimeException?

I'm writing an integration test for a UI component. The test is outlined as such: package filter.clear import android.view.View import android.widget.SearchView import androidx.test.core.app.ApplicationProvider import…
4
votes
2 answers

Running unit tests for typescript in VS

I've found couple of examples of running unit tests for typescript. All of them are based on referencing both ts and js file like /// /// Unfortunately when I try to reference js…
4
votes
1 answer

Test Explorer List in Visual Studio 2012 Extension VSIX

I would like to retrieve the list of tests from the test explorer in a visual studio 2012 extension. Is this possible using the Package.GetGlobalService or via DTE? [Edit] Since this is getting no response I'll provide some more info. Currently IDE…
Scott Mackay
  • 1,194
  • 10
  • 34
3
votes
1 answer

Jest - Find related tests and run them on `pre-commit` Hook

I have Jest as my Test Runner. I also have husky in my commit hook. I want to run on every commit, the tests that are affected by my changes and related ones. I see in the documentation for Jest the following options, but I am not making progress on…
user10104341
3
votes
2 answers

How to pass cucumber tag as parameter and update in test runner file before perform execution in jenkins?

i am new for Jenkins and want to pass a parameter like cucumber tag from jenkins and it should update in test runner file dynamically and then should start execution. Please share me code or screenshots.
vishalbha
  • 49
  • 1
  • 5
1
2
3
12 13