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.
Questions tagged [test-suite]
320 questions
12
votes
1 answer
Does new JUnit 4.8.1 @Category render test suites almost obsolete?
Given question 'How to run all tests belonging to a certain Category?' and the answer would the following approach be better for test organization?
define master test suite that contains all tests (e.g. using ClasspathSuite)
design sufficient set…

topchef
- 19,091
- 9
- 63
- 102
12
votes
2 answers
How to list available tests with python?
How to just list all discovered tests?
I found this command:
python3.4 -m unittest discover -s .
But it's not exactly what I want, because the above command executes tests. I mean let's have a project with a lot of tests. Execution time is a few…

xliiv
- 5,399
- 5
- 29
- 35
11
votes
2 answers
testing multiple folders
I use PHPUnit 3.5.12, netbean 6.9, and git submodules in my project.
So my folder architecture looks like…

FMaz008
- 11,161
- 19
- 68
- 100
11
votes
4 answers
In TFS, how do I find all Test Cases in a Test Suite with a query (C#)?
With Team Foundation Server, given a WorkItem of type "Test Suite," how can I write a query to select all Test Cases associated to that Test Suite?

whoknows
- 395
- 2
- 4
- 17
11
votes
1 answer
How to run test suite in python setup.py
I am trying to setup a Python package using setup.py. My directory structure looks like this:
setup.py
baxter/
__init__.py
baxter.py
tests/
test_baxter.py
Here is setup.py:
from setuptools import setup, find_packages
setup(name='baxter',
…

rlandster
- 7,294
- 14
- 58
- 96
10
votes
2 answers
@Before and @After not working with JUnit 5 on Eclipse 2018-12 JAVA
I just created a test class from File->New->JUnit Test Cases and this is my whole code:
import static org.junit.jupiter.api.Assertions.*;
import org.junit.After;
import org.junit.Before;
import org.junit.jupiter.api.Test;
class TestingJUnit…

Aashir Haque
- 153
- 1
- 2
- 12
10
votes
0 answers
Create dynamic Junit testsuite for All classes extending specific class
I have an AbstractTestBase and many junit Test classes extending it, and new Test classes are extending it over the time
I have this test suite now
@RunWith(Suite.class)
@SuiteClasses({ATest.class, BTest.class, CTest.class})
public class AllTests…

Amgad Hanafy
- 537
- 5
- 15
10
votes
3 answers
How do I create Android test suite which only runs specified tests in one or more classes?
Can someone shed some light on how to organize tests in test suites, using JUnit in Android? I find almost all examples to be non-working, and I'm wondering what it is that I'm not getting.
I've made a small example with an AndroidTestCase class…
user1341676
10
votes
2 answers
How to programmatically execute a test suite using JUnit4?
I am trying to invoke a JUnit Test suite using the API. I know that you can suite up test classes using the following:
@RunWith(Suite.class)
@Suite.SuiteClasses({
Test1.class,
Test2.class, ...
})
But, is there a way to trigger the entire suite…

Neel
- 2,100
- 5
- 24
- 47
9
votes
2 answers
I need a number of different full-page DOM samples for my qUnit test suite
I have a small amount of Javascript to test, but it operates on the entire page, for example, finding elements by numbered ids like "#t34". I need to create a handful of different pages to test the different possible configurations. I see that I…

Ned Batchelder
- 364,293
- 75
- 561
- 662
9
votes
4 answers
Parameterized unit test suites
I am trying to set up some parameterized test suites, unfortunately without any luck so far.
I have two set of parameters, and I would like to run multiple test cases (they are in different classes) with all possible combinations. I tried to do it…

skandigraun
- 741
- 8
- 21
8
votes
7 answers
How can I best write unit test cases for a Parser?
I am writing a parser which generates the 32 bit opcode for each command. For example, for the following statement:
set lcl_var = 2
my parser generates the following opcodes:
// load immdshort 2 (loads the value 2)
0x10000010
// strlocal lclvar…

Vinay
- 4,743
- 7
- 33
- 43
8
votes
2 answers
What's the difference between CTS and GTS?
I'm familiar with CTS(Compatibility Test Suite). But recently I came across the term GTS, which as per my understanding is also a Google's compatibility test suite. But I don't have enough information regarding this. I googled for the difference…

KayPee
- 173
- 1
- 1
- 10
8
votes
1 answer
Suites vs Specs Protractor
I have recently picked up a project using Protractor.
I am having troubles understand the difference between a suite and a specs. I am also having trouble with a suites when I am running a folder of test's after that folder is ran I run another…

Tyson H.
- 107
- 1
- 1
- 7
8
votes
0 answers
Create global variable in Test Suite accessible by all JUnit Test
I have a question regarding setting up Junit Test Suite. First of all, I am using JUnit libarary version 4.7.
My problem is to create application context in the test suite then allow all the test suite it is running to be accessible to the…

Seng Zhe
- 613
- 1
- 11
- 21