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.

295 questions
101
votes
5 answers

JUnit 4 Test Suites

How do I create test suites with JUnit 4? All the documentation I've seen doesn't seem to be working for me. And if I use the Eclipse wizard it doesn't give me an option to select any of the test classes I have created.
Adam Taylor
  • 6,773
  • 8
  • 40
  • 52
53
votes
5 answers

How can I test a PDF document if it is PDF/A compliant?

We write a software that create PDF files. How we can check if the resulting pdf files are PDF/A compatible? Are there any test suite for it available?
Horcrux7
  • 21,867
  • 21
  • 85
  • 134
42
votes
8 answers

Before/After Suite when using Ruby MiniTest

Is there an alternative to RSpec's before(:suite) and after(:suite) in MiniTest? I suspect that a custom test runner is in order, however I cannot imagine it is not a common requirement, so somebody has probably implemented in. :-)
Nickolay Kolev
  • 1,119
  • 1
  • 9
  • 14
37
votes
2 answers

Run Junit Suite using Maven Command

I have multiple Junit test suites (SlowTestSuite, FastTestSuite etc). I would like to run only specific suite using maven command. e.g. mvn clean install test -Dtest=FastTestSuite -DfailIfNoTests=false but its not working. Just not running any test…
Java SE
  • 1,923
  • 3
  • 17
  • 25
35
votes
1 answer

TestSuite Setup in jUnit 4

I've managed to find out how to make a TestSuite in jUnit 4, but I really miss the v3 possibility of wrapping a suite in a TestSetup. Any ideas as to how to get some @BeforeClass/@AfterClass setup executed for a suite of test cases in jUnit…
Rasmus
  • 353
  • 1
  • 3
  • 4
35
votes
4 answers

Trying to implement python TestSuite

I have two test cases (two different files) that I want to run together in a Test Suite. I can get the tests to run just by running python "normally" but when I select to run a python-unit test it says 0 tests run. Right now I'm just trying to get…
avoliva
  • 2,368
  • 4
  • 19
  • 35
29
votes
1 answer

Are test suites considered deprecated in JUnit5?

I am trying to create test suites with JUnit5. After some research I was not able to conclude whether it is a supported feature or not. The official user guide only mentions suites with regard to backwards compatibility to JUnit 4. This is how it…
AscendingEagle
  • 607
  • 6
  • 12
25
votes
1 answer

Why use JUnit test suites?

I'm going to be implementing some unit tests using JUnit in some upcoming tasks for work. I have slight experience with JUnit from my previous employer, but while I was studying, I came across test suites. I don't have any idea if I'll be using…
Kyle Stoflet
  • 1,034
  • 1
  • 16
  • 25
22
votes
2 answers

JUnit4 run all tests in a specific package using a testsuite

Is this possible in JUnit4? In JUnit3, I would do the following: public class MyTestSuite { public static Test suite() throws Exception { doBeforeActions(); try { TestSuite testSuite = new TestSuite(); for(Class clazz :…
Fortega
  • 18,589
  • 14
  • 71
  • 111
16
votes
3 answers

Instantiate Python unittest.TestCase with arguments

I would like to iterate over a list of items, and run an assertion on each of them. One example might be checking whether each number in a list is odd. TestCase: class TestOdd(unittest.TestCase): def runTest(self): """Assert that the…
Adam Matan
  • 107,447
  • 124
  • 346
  • 512
15
votes
1 answer

How to run Junit TestSuites from gradle?

I am trying to migrate from Ant build to Gradle in my project. There are a bunch of test cases (subclasses of junit.framework.TestCase) and few test suites (subclasses of junit.framework.TestSuite). Gradle automatically picked up all test…
James
  • 151
  • 1
  • 1
  • 4
15
votes
2 answers

Google Test - Using "SetUpTestSuite" doesn't seem to work

I'm trying to write a test suite that performs a test-suite level "Set Up" operation. I attempted to write a simple program first to try and get it working but I am not having any luck getting the "SetUpTestSuite" method to be called. #include…
tjwrona1992
  • 7,723
  • 5
  • 26
  • 76
13
votes
4 answers

Test suite for GIF containing images using rarely used features

The specifications (plural, since there are versions 87a and 89a) of the GIF graphics format are easy to find in the internet (for those who don't want to…
Nubok
  • 3,113
  • 6
  • 24
  • 45
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
  • 17,019
  • 8
  • 58
  • 98
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
  • 10,389
  • 16
  • 61
  • 90
1
2 3
19 20