Questions tagged [test-runner]

187 questions
3
votes
2 answers

In Cucumber, How to pass the location of the file path such that it works for both Windows and MAC

In Cucumber(mvn based java project) we need to specify the location of files (e.g) feature file location in the TestRunner as below @CucumberOptions(features=("src\\test\\resources\\features"), glue=…
Karthikeyan
  • 125
  • 2
  • 13
3
votes
1 answer

TestCafe Runner - Is it possible to pass a constant from the createRunner file to tests

I need to pass a url to all tests executed in a createRunner. I have used args to do this executing tests from command line. Is there a way to pass a constant from the createRunner to tests executed? See createRunner below I am using. …
3
votes
1 answer

How i can to customize testRunner from testcafe framework?

I have my testRunner for tests. But the problem is -> how i can add the browser resolution in test runner, because i don't want to add this to my tests. Thanks for help. runner .src(testFiles) .browsers('chrome') …
3
votes
3 answers

Django Test Runner can't find tests

I am running into issues with the Django (1.10.6) Test Runner being unable to find my tests. I am using Python 3.6. The following works: python manage.py test apps.foo but this does not: python manage.py test My project structure looks as…
Nathan
  • 1,897
  • 2
  • 15
  • 16
3
votes
2 answers

groovy, Junit4 unit test, and related test runner

I'm trying to write Junit4 test cases for my Groovy code. The Junit 4 test case works fine inside my Eclipse IDE which is SpringSource Tool Suite. I can't get a test running to run the all of the test cases, however. Here is my current attempt at…
rock298
  • 73
  • 2
  • 8
3
votes
1 answer

Resharper unit test runner doesn't discover all xunit tests

I'm using xUnit (1.9.2. version) + ReSharper + xUnit.net Test Support for ReSharper 9 extension for ReShaper. For some reason ReSharper unit test runner doesn't discover all existing unit tests, while Test Explorer does. All test classes are marked…
dragan.stepanovic
  • 2,955
  • 8
  • 37
  • 66
3
votes
0 answers

karma test runner error: require jquery

I'm new to using karma and unit testing in general. I tried finding a solution by googling this problem, but I wasnt able to find anything useful , as my app/assets/components does not have any jquery fiels what so ever, nor do i have any…
3
votes
1 answer

Overriding TEST_RUNNER with @override_settings

In order to run my tests faster I created a no db test runner as in this answer. Then I needed to set the TEST_RUNNER settings variable to my new test runner but only for certain tests. To achieve this, I tried using…
educampver
  • 2,967
  • 2
  • 23
  • 34
3
votes
2 answers

How do you disable the test explorer in Visual Studio 2012

I use ReSharper to run unit tests from within Visual Studio 2012. Every now and then I accidentally invoke the in-built test explorer by accident when running unit tests, instead of the ReSharper test runner. How do you disable the test explorer in…
Bittercoder
  • 11,753
  • 10
  • 58
  • 76
3
votes
2 answers

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 running them? I can use JUnit 4.x runners but my tests…
topchef
  • 19,091
  • 9
  • 63
  • 102
2
votes
2 answers

Automated testing against third party library that maintains a singleton state internally

My code is using a third party library that employ a singleton pattern deep down inside it. On first access, the library uses windows environment variables to identify a configuration folder from which it is loaded. However, I want to run against…
Tormod
  • 4,551
  • 2
  • 28
  • 50
2
votes
2 answers

Is it possible to run only specific tests on Cypress through support/index.js?

I am trying to run only specific test. Say I have 50 test files inside integration folder and want only 10 of them to run. I am trying to configure this from support/index.js file like: import './commands' import…
Aishwarya
  • 45
  • 6
2
votes
1 answer

Using Mocked Service Worker (msw) with @web/test-runner

I am trying to setup msw with @web/test-runner (and playwright). The problem is that I don't know how the mockServiceWorker.js can be picked up by the test runner (which uses browser, not nodejs like jest). There is an example with…
Jinx
  • 348
  • 3
  • 14
2
votes
1 answer

What is assertion methods?

I'm learning AVAJS recently. One thing that sounds kind of abstract to me is 'assertion methods', or simply assertion. For example: What is it, or what it actually does in programming. I'm looking for some easy-understanding docs to read up. Any…
jialeee17
  • 601
  • 2
  • 7
  • 12
2
votes
1 answer

How Can I integrate TestRail with C# correctly

I'm trying to integrate my automation tests with TestRail. I work with c#. I use the API of TestRail in my test project. I create TestRun manually and have testRun id and test case id. I have a problem when my test case is located in nested…
1 2
3
12 13