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
104
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
  • 7,534
  • 8
  • 44
  • 54
63
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
  • 23,758
  • 21
  • 98
  • 156
47
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,179
  • 2
  • 9
  • 14
44
votes
2 answers

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
  • 771
  • 1
  • 7
  • 17
40
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
  • 2,073
  • 4
  • 19
  • 25
38
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
  • 3,181
  • 5
  • 23
  • 37
36
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
  • 363
  • 1
  • 3
  • 4
28
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,194
  • 3
  • 16
  • 27
24
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
  • 19,463
  • 14
  • 75
  • 113
18
votes
3 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
  • 8,614
  • 8
  • 35
  • 98
18
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
  • 128,757
  • 147
  • 397
  • 562
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
14
votes
1 answer

Test Suite Run Spring Boot Once

I am trying to create a test suite that runs Spring Boot once at the start of the suite. I have it working such that each test case has @SpringBootTest but I'd like to have @SpringBootTest in the test suite only. I did see this but that didn't…
user2052618
  • 556
  • 2
  • 7
  • 20
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,502
  • 7
  • 27
  • 47
12
votes
6 answers

Stop testsuite if a testcase find an error

I have a testSuite in Python with several testCases. If a testCase fails, testSuite continues with the next testCase. I would like to be able to stop testSuite when a testCase fails or be able to decide if the testSuite should continue or stop.
Gabriel Quesada
  • 121
  • 1
  • 3
1
2 3
21 22