Questions tagged [test-runner]

The tag has no usage guidance.

test-runner
Filter by
Sorted by
Tagged with
171 votes
46 answers
125k views

Visual Studio 2015 or 2017 does not discover unit tests

EDIT 2016-10-19: The original question was about an issue specific to VS2015 CTP6 with the XUnit test runner. It's clear from the answers that there is a much broader issue with unit test discovery ...
Fred Kleuver's user avatar
  • 7,887
15 votes
2 answers
19k views

Get @CucumberOptions tag property using System.getProperty()

I am running a maven project in Eclipse for my Cucumber tests. My test runner class looks like this: @RunWith(Cucumber.class) @CucumberOptions( tags = { "@Now" }, // tags = { "@...
Charlie S's user avatar
  • 4,468
70 votes
8 answers
41k views

No tasks available when executing JUnit runner class

I am trying to run Cucumber feature files in IntelliJ. Cucumber Options is pointing to the right folder, but I get the "No tasks available" notification when trying to execute the JUnit runner class....
Mate Mrše's user avatar
  • 8,218
40 votes
5 answers
11k views

JetBrains Resharper 9 Ultimate Test Runner error: NUnit.Core.UnsupportedFrameworkException: Skipped loading assembly {MyAssembly}

This seems to be an error with the JetBrains Resharper 9.1 Ultimate Test Runner referencing an older version of NUnit. I am using NUnit 3.0 in my assembly. [Window Title] Unit Test Runner [Main ...
Pouya Barrach-Yousefi's user avatar
24 votes
4 answers
9k views

How can I continuously run unit tests in Visual Studio 2012 Professional?

Visual Studio 2012 added a "Run tests after build" button in the Unit Test Explorer, but it seems that option is not available in the Professional edition. In fact, my "Unit Test Explorer" is just ...
Brant Bobby's user avatar
  • 15.2k
22 votes
7 answers
16k views

What is the best Nunit test runner out there? [closed]

Having recently gotten into test driven development I am using the Nunit test runner shipped as part of resharper. It has some downsides in terms of there is no shortcut to run tests and I have to go ...
anonym0use's user avatar
  • 2,986
6 votes
2 answers
2k views

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 ...
1v0's user avatar
  • 352
27 votes
2 answers
13k views

Cannot resolve ActivityTestRule after upgrading dependencies. Unable to import ActivityTestRule

I have written instrumentation tests which was working fine, but now getting error cannot resolve ActivityTestRule error after upgrading dependencies to androidTestImplementation 'com.android....
Navjacinth Mathew's user avatar
11 votes
1 answer
3k views

Is there test explorer in intellij idea? (to observe all the tests without execution)? I use TestNG

In VS and Resharper I could see all test in my solution before any execution, see https://www.jetbrains.com/help/resharper/Reference__Windows__Unit_Test_Explorer.html In Idea I can't find any test ...
Tatiana's user avatar
  • 401
3 votes
2 answers
2k views

JUnit Test Runner that creates tests just before running them

I use JUnit 3.x TestRunner that intantiates all tests at once before running them. Is there a Test Runner available that would create each test (or at least each test suite's tests) just before ...
topchef's user avatar
  • 19.4k
2 votes
1 answer
5k views

SoapUI defining a library of reusable methods

I'm running into copy-pasting a lot of code at the moment in my SoapUI projects, and thought I'd have some sort of library of helper functions that can carry out most of my tasks. So I have a test ...
joakimnorberg's user avatar
2 votes
1 answer
1k views

How do I save a report to a new location every time I run a testrunner script in CLI - SOAPUI

I am running a script through testrunner CLI through a Jenkins build. I want the result's saved to a new folder for each run. How do i do it? testrunner.bat -r -j -J "-fC:\Users\xxxxxx\Desktop\...
Sandip Das's user avatar
2 votes
1 answer
11k views

MSBuild to run unit tests

I am trying to configure CruiseControl .net to build our repository code periodically and run the tests included in the solution. I have configured the retrieving code from the svn server and building ...
shake's user avatar
  • 1,762
2 votes
1 answer
167 views

Make phantomjs run all '*.js' files in the current directory

I want to write a script to call phantomjs on a bunch of test scripts in a directory. This script runs the first test and then exits. #!/bin/bash find . -maxdepth 1 -name '*.js' -type f -exec ...
meatspace's user avatar
  • 899
0 votes
1 answer
2k views

Visual studio test runner - criteria is filtering all tests

Using VS 2013 and TFS 2013, I have 4 unit tests but I want a TFS build to run only one of them. For this I have assigned [TestCategory("bvt")] as an attribute of the method. I edit the build ...
Rob Bowman's user avatar
  • 8,235