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
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
  • 6,310
  • 12
  • 50
  • 76
10
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
  • 101
  • 1
  • 3
10
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
  • 4,509
  • 5
  • 26
  • 33
10
votes
4 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
  • 1,988
  • 4
  • 22
  • 44
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
  • 323,515
  • 67
  • 518
  • 625
9
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
  • 342
  • 2
  • 8
9
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
  • 365
  • 2
  • 4
  • 15
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
  • 650
  • 8
  • 21
8
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
  • 376
  • 1
  • 3
  • 16
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
1 answer

PHPUnit: Filter only for one testsuite

In PHPUnit it is posible to organize the tests in different testsuites: ./AlbumTest
automatix
  • 10,950
  • 17
  • 85
  • 198
7
votes
3 answers

send parameters from test suite to test case in junit 4

I've got four junit cases and I need to pass them a parameter, that is the same for all of them, but this parameter is created in a dynamic way in the test suite. How can I pass a parameter from the test suite to all the tests in the test case?
7
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,675
  • 7
  • 31
  • 42
1
2
3
19 20