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
5
votes
1 answer

Is there a way to force Maven Surefire or JUnit to indicate the name of the failing test class when executed from a Test Suite?

My question: Is there a way to force Maven Surefire (or JUnit?) to indicate the name of the failing test class when this class has been executed from a Test Suite? Now, the long story. Imagine you have a JUnit test suite that launches two JUnit…
Romain Linsolas
  • 79,475
  • 49
  • 202
  • 273
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
1 answer

C : POSIX threads library test-suite

I'm working on a thread library which implement user level threads (i have something like pthread_setscope which works) and I'm looking for some set of tests to avoid writing one for every function I implement (mutexes, conditions, etc ...) Does…
claf
  • 9,043
  • 17
  • 62
  • 79
5
votes
1 answer

Is it possible to run several TestNG suite files in one configuration in IntelliJ IDEA?

I have several TestNG suite files across my multi-module java project, it's structure looks like this: project\ module1\src\test\resources\ suite1.xml suite2.xml module2\src\test\resources\ suite3.xml Is it possible to create run…
arghtype
  • 4,376
  • 11
  • 45
  • 60
5
votes
2 answers

Add Test Case to ITestSuiteBase in TFS API

I'm working with the TFS API and have run into a problem with ITestSuiteBase and IRequirementTestSuite. I've mananged to easily create a new test case within a IStaticTestSuite: IStaticTestSuite workingSuite = this.WorkingSuite as…
Direweasel
  • 153
  • 2
  • 10
5
votes
1 answer

Show Test result Form test suites using TFS api

I am working with a school project where I am going to analyse a companies defect database. They are using Microsoft Foundation Server (TFS). I am all new to TFS and the TFS api. I have some problem in getting the right data from TFS using the TFS…
user1418385
  • 73
  • 1
  • 6
5
votes
1 answer

How to add a JUnit 4 test to a JUnit 3 test suite

I want to add a JUnit 4 test to a legacy project which uses JUnit 3 test suites ("AllTests") to organize the tests. The tests are already executed with JUnit 4, so I know that JUnit 4 tests work in principle. I just forgot how to add the JUnit 4…
oberlies
  • 11,503
  • 4
  • 63
  • 110
5
votes
3 answers

perl test suite for API

I'm writing a perl module that interfaces with an API and I would like to write a test suite for it before putting it up on CPAN. However, because this module is basically just an interface for an API, all tests would require a valid API key and…
srchulo
  • 5,143
  • 4
  • 43
  • 72
5
votes
1 answer

test suite inside spring context

Is it possible to run test suite with loaded spring context, something like this @RunWith(Suite.class) @SuiteClasses({ Test1.class, Test2.class }) @ContextConfiguration(locations = { "classpath:context.xml" }) <------ public class SuiteTest { } The…
Marko Vranjkovic
  • 6,481
  • 7
  • 49
  • 68
5
votes
1 answer

Test Suite in Flask with MongoEngine

I have a small app in Flask which I want to accompany with tests. I have used Django tests before, and I'm just getting to grips with the lower level functionality in Flask. My tests currently look like this: import unittest from config import…
Darwin Tech
  • 18,449
  • 38
  • 112
  • 187
5
votes
2 answers

How do you insert the same random variable into multiple soapui testcase requests?

I may be going about this in the completely wrong way, but how do I pass a dynamic variable to a bunch of requests within the same testsuite in SoapUI? My first test step is a Groovy script. I need to generate a random account name, and then use it…
user83598
  • 161
  • 1
  • 3
  • 10
4
votes
1 answer

Failed to get device list from HomeGraph: Requested entity was not found

I have implemented Smart home actions as per documentation, i have enabled Home graph api, i got agentUserId from Google Oauth playground, but when i submit agentUserId and service account key in test suite its returns an Error 404 msg: Failed to…
Sai Prasad Goud
  • 199
  • 1
  • 7
4
votes
1 answer

Any way to provide reason to a disabled suite in Jasmine

Currently, we can give reason to pending spec using pend() function this way - xit("pending spec", function(){ //Skipped spec }).pend("This is a reason"); Output of the above function would be - Sample Test: pending spec This is a…
giri-sh
  • 6,934
  • 2
  • 25
  • 50
4
votes
1 answer

Is there a YAML test suite?

A comprehensive test suite would be a valuable tool to have, especially when evaluating all of the variant parsers out there. Does such a beast exist? In a perfect world, I imagine it would have different sections for different versions of the…
djsadinoff
  • 5,519
  • 6
  • 33
  • 40
4
votes
1 answer

Spock's @IgnoreIf Closure doesn't see System prop variable, set in jUnit's Suite

I Use Geb + Spock + jUnit runner + Maven My Specs are like: @Stepwise class My_Spec extends GebReportingSpec { @IgnoreIf({properties['sss'].contains('true')}) def "testFeature 1" (){ println ("--> Feature 1 runs") given: …
Uniqobot
  • 65
  • 6