Questions tagged [suite]
132 questions
13
votes
2 answers
Running JUnit Test in parallel on Suite Level?
I have a bunch of tests that are organized in JUnit test suites. These tests are greatly utilizing selenium to test a web application. So, naturaly for selenium, the runtime of these tests is quite long. Since the test classes in the suites can not…

Frank
- 437
- 1
- 4
- 8
8
votes
2 answers
android - accessing test application assets
I've an XML file in the assets directory of my test application. I want to access this file from my suite method of the test class.
ie.,
public static TestSuite suite(){
InputStream stream = // Some code which returns the asset
}
Any idea how I…

Joseph
- 81
- 1
- 4
7
votes
1 answer
junit implementation of multiple runners
I have been trying to create a personalized test suite by creating a suiterunner which extends runner. In the test suite which is annotated with @RunWith(suiterunner.class) i am referring to the test classes which need to be executed.
Within the…

vpradhan
- 161
- 2
- 7
7
votes
2 answers
Parameterized suites in Junit 4?
With @RunWith( Suite.class ) I can group test classes into a test suite and run them all together. With @RunWith( Parameterized.class ) I can run the same test for different parameters. What I want is to run a test suite for different parameters. Is…

Frank HJ Cuypers
- 71
- 2
6
votes
4 answers
boost-test initialization for each suite (not case)
I need to init some variables, which are "global" inside a BOOST_AUTO_TEST_SUITE
so their constructors will be called when the suite starts and their destructors will be called right after the last corresponding BOOST_AUTO_TEST_CASE is finished
does…

Alek86
- 1,489
- 3
- 17
- 26
6
votes
1 answer
Junit4: Running a Suite of particular Test methods
Is there a way to create a suite of test methods, not just test classes?
I'd like to put together a test suite that just runs particular tests methods from a test class. I don't see a way to do this from my limited junit knowledge and from searching…

Aaron
- 3,249
- 4
- 35
- 51
6
votes
1 answer
Spring 3+ How to create a TestSuite when JUnit is not recognizing it
I'm using Spring 3.0.4 and JUnit 4.5. My test classes currently uses Spring's annotation test support with the following syntax:
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration (locations = { "classpath:configTest.xml"…

chris
- 3,820
- 6
- 36
- 36
5
votes
3 answers
How can I share one Selenium webdriver instance in NUnit and C#?
I want easy way to launch Selenium webdriver instance and run various tests on it. I'm trying to do this in Suite file, but it doesn't work. Instance is killed instantly. Is there any alternatives on how to do this?
Potentially I want to add more…

Gita
- 135
- 1
- 7
5
votes
4 answers
JUnit 4: how do I create a suite of suites?
Running the junit below raises an exception.
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
import com.prosveta.backend.daoimpl.AllDaoImplTests;
/**
* Short desc.
*
* Longer desc.
…

Jean-Pierre Schnyder
- 1,572
- 1
- 15
- 24
5
votes
4 answers
TestNG: Running multiple suites with preserved order using tag
I am trying to run multiple suites from one overall suite file. I define the suites I need to run and run the "master" suite file. I have used preserve-order to run each suite in sequence, however the behaviour is not as I would expect. It seems…

Jacko Moore
- 51
- 1
- 2
4
votes
2 answers
No tests found when filtering junit test suite
I want to run a single junit4 test suite and specified it using filter in build.gradle ,but gradle(version 2.10) find no tests.
Is there a way to run a specified junit test suite in gradle?
My test suite class
@RunWith(Suite.class)
…

chao_chang
- 778
- 8
- 14
4
votes
3 answers
How do I make Eclipse recognize JUnit tests when creating a suite?
When I use Eclipse to create a JUnit test suite, it does not detect any existing tests, and warns "No test classes selected."
I started from the test class package (test/com/.../package), and the package is selected. There are several JUnit tests…

orbfish
- 7,381
- 14
- 58
- 75
4
votes
1 answer
How can I create custom records with suitescript in netsuite?
var recExpense = nlapiCreateRecord("customrecord_expense");
recExpense.setFieldValue(1028,"3223");//employee number
nlapiSubmitRecord(recExpense);
I just wrote that simple code to create a new custom record but after the execution just a blank…

Arif Karadag
- 129
- 1
- 2
- 8
4
votes
3 answers
Illegal instruction debug
I've compiled a whole suite of bioinformatics analysis. (https://github.com/iontorrent/TS)
It has a lot of dependencies (armadillo, blas, lapack, atlas etc..).
On compilation I had no errors. The problem is that some of the executable file created…

gmarco
- 535
- 3
- 8
- 16
4
votes
3 answers
automatic inclusion of classes in a Java test suite
Test suites in Junit4 run nicely, but there's a snag here:
@RunWith(Suite.class)
@Suite.SuiteClasses({ A.class, B.class, ...})
If somebody develops a unit test and forgets to include it in Suite.SuiteClasses, that's obviously a problem.
(that's not…

LetMeSOThat4U
- 6,470
- 10
- 53
- 93