Questions tagged [test-suite]

Test Suite: A set of several test cases for a component or system under test, where the post condition of one test is often used as the precondition for the next one.

320 questions
4
votes
3 answers

Surefire run certain tests in sequence, others in parallel

Is there a way to make certain tests run in in sequence with the surefire plugin for JUnit? Currently it is running all tests in parallel, but some tests are very hard to convert and it would be sufficient if they didn't run in parallel. Here is a…
Mattias
  • 1,110
  • 1
  • 11
  • 26
4
votes
2 answers

Basics of automated tests?

Till now I've been testing my web (usually written in PHP) as well as desktop applications (normally Java or C#) manually. Now I read somewhere on the net about automated tests. I tried searching to know about it in details but almost all searches…
Muhammad Yasir
  • 646
  • 1
  • 4
  • 18
4
votes
2 answers

Running JUnit test classes from another JUnit test class

I have two classes that I am testing (let's call them ClassA and ClassB). Each has its own JUnit test class (testClassA and testClassB respectively). ClassA relies on ClassB for its normal functioning, so I want to make sure ClassB passes its tests…
David Mason
  • 2,917
  • 4
  • 30
  • 45
4
votes
1 answer

WildcardPatternSuite finds no classes

I'm trying to use the WildcardPatternSuite from junit-toolbox, but the testsuite fails with java.lang.Exception: failed to scan C:\Users\ms\workspaces\comet4\PubServerTests\build\com\priint\pubserver\tests\testsuites using wildcard patterns…
Martin Schröder
  • 4,176
  • 7
  • 47
  • 81
4
votes
2 answers

How can I test a cross-platform command-line client?

I want to perform integration tests on a command line program that is supported on multiple platforms. For example, if I am writing a mercurial plugin and want to test it from the top level, how could I create a test suite which will run on Windows,…
4
votes
1 answer

Open source test suite for Java List API implementations?

I just wrote a WeakArrayList class, which implements List, with WeakReferences to the elements, and appropriate synchronizations. I have every reason to believe that a through test suite will be much larger and complicated then my class…
Charlweed
  • 1,517
  • 2
  • 14
  • 22
4
votes
1 answer

Manually adding test suite to nose

I want to create a test suite manually instead of using test discovery (only in one module, the others should use discovery). I found how I can do this in unittests, but I'm not sure how to transfer that to nose and how it mixes with the discovery.…
M.K.
  • 346
  • 3
  • 14
4
votes
2 answers

How to use HTML TestSuite as well as Test Cases on Selenium RC using IE

I am using Selenium RC in Internet Explorer. I have written some test cases in HTML. How can I write Test Suite in HTML including my test cases in HTML? I want to run the HTML Test Suite using Selenium RC in IE and Windows XP / Windows 7. How can I…
Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
3
votes
4 answers

Executing Selenium HTML Test Suite in Jenkins is not able to launch on firefox

I am trying to integrate Jenkins with Selenium. I have prepared the following command: java -jar \ -htmlSuite *firefox "" \ ""…
Suman
  • 191
  • 1
  • 7
3
votes
2 answers

How to write a test suite with junit 5 for eclipse?

I am trying to run by junit5 tests from a test suite. however Im getting an error import org.junit.platform.runner.JUnitPlatform; import org.junit.platform.suite.api.SelectClasses; import org.junit.runner.RunWith; import…
3
votes
0 answers

Test key-board short-cuts using Cypress

I am trying to test keyboard short cuts. I tried using 'type' and 'trigger' assertions but they both are child assertions and I will have to pass a DOM element using a parent assertion such as cy.get(). I don't really need to select any DOM element…
3
votes
1 answer

How to create a JUnit 4 test suite to pass when expected exceptions are thrown

I am writing a JUnit 4 test suite which runs some tests that check if an exception has been thrown. On their own, my tests look somewhat like this: @RunWith(value=BlockJUnit4ClassRunner.class) public class CreateCommandsExceptionsTest extends…
Jennifer
  • 33
  • 1
  • 3
3
votes
2 answers

Why Netbean ignore PHPUnit testsuite from the XML config?

I've setup netbean to use my config.xml file, and it works well except for the testsuites part that is completly ignored by netbean. It look like netbean try to execute this command: phpunit -c config.xml path/to/tests/ instead of just: phpunit -c…
FMaz008
  • 11,161
  • 19
  • 68
  • 100
3
votes
0 answers

How to show Boost Test test case hierarchy in Visual Studio 2017's Test Explorer?

I have a unit test file using Boost Test, like so: #include #include #include namespace { struct S { static auto count() -> int& { static int c; return c; } S(){…
Cheers and hth. - Alf
  • 142,714
  • 15
  • 209
  • 331
3
votes
1 answer

How to load application context Once for multiple Test classes

I have two test classes public class Test_1 { @Autowired private Gson gson; @Test public void test_1_1 () { assertNotNull(gson); } } public class Test_2 { @Autowired private Gson gson; @Test public…
pvjhs
  • 549
  • 1
  • 9
  • 24