test-suite

Surefire run certain tests in sequence, others in parallel

只愿长相守 提交于 2021-02-07 09:10:43
问题 Is there a way to make certain tests run in in sequence with the surefire plugin for JUnit? Currently it is running all tests in parallel, but some tests are very hard to convert and it would be sufficient if they didn't run in parallel. Here is a part of our pom.xml: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.17</version> <dependencies> <dependency> <groupId>org.apache.maven.surefire</groupId> <artifactId>surefire-junit47<

Are test suites considered deprecated in JUnit5?

谁说我不能喝 提交于 2020-08-02 05:47:41
问题 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 was done back in JUnit 4: @RunWith(Suite.class) @SuiteClasses({Test1.class, Test2.class}) public class TestSuite { } Does this mean, that Test Suites are considered deprecated now, or is the same concept still available under another name? 回答1: Does

Are test suites considered deprecated in JUnit5?

旧巷老猫 提交于 2020-08-02 05:44:29
问题 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 was done back in JUnit 4: @RunWith(Suite.class) @SuiteClasses({Test1.class, Test2.class}) public class TestSuite { } Does this mean, that Test Suites are considered deprecated now, or is the same concept still available under another name? 回答1: Does

How to list available tests with python?

余生长醉 提交于 2020-02-01 03:09:27
问题 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 minutes. This force me to wait until tests are finished. What I want is something like this (above command's output) test_choice (test.TestSequenceFunctions) ... ok test_sample (test.TestSequenceFunctions) ... ok test_shuffle (test

Show Test result Form test suites using TFS api

偶尔善良 提交于 2020-01-11 05:36:09
问题 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 Client Object Model . I can retrieve all Test Plans, their respective test suites and every test case that a specific test suite uses, but the problem comes when I want to see in which test suite I have a specific test result from a test case. Since

Trying to run nosetests outputing with xunit and using suite

隐身守侯 提交于 2020-01-05 09:35:14
问题 I'm trying to run nosetests in web2py using suite and outputing with xunit, it creates the xml files but even if the console shows that there were errors, but, they are not been written in the xml file The .py script: suite = TestLoader().loadTestsFromTestClass(globals()[strArchivo+strDirectorio]) noseargs = ['fake','--processes=0','v=0','--process-timeout=60', '--with-xunit', '--xunit-file=applications/output.xml','--verbosity=0'] nose.run(argv = noseargs,suite = suite) The console output:

What is TestSuite?

拜拜、爱过 提交于 2019-12-29 08:47:25
问题 I am relatively new to Java and new to JUnit testing. It's absolutely clear to me what the Test class uis, but the TestSuite class confuses me. Can someone explain me what TestSuite is for? 回答1: Its a collection of tests. It allows you to run such a collection as a group. Example from the first link I found with google. import junit.framework.Test; import junit.framework.TestSuite; public class EcommerceTestSuite { public static Test suite() { TestSuite suite = new TestSuite(); // // The

NUnit tests don't appear in TFS choose test dialog using Visual Studio 2013 (C#)

限于喜欢 提交于 2019-12-24 12:38:06
问题 We are using Visual Studio 2013 and TFS for a new project started more than a month ago. I've chosen NUnit a test framework mainly because I was use to it using Resharper and Teamcity. During the build we have configured TFS to run the tests (using NUnitTestAdapter) and everything is OK. We have now discovered that you can link a unit test to a test case item in TFS and it seems a pretty good thing but in the choose test dialog of a test case item I am able to see only MsTest tests (with

TestNG: Changing thread counts at runtime

元气小坏坏 提交于 2019-12-24 02:25:33
问题 Suppose that I have a suite which can be executed either in parallel or serially. However, the decision to do so is left until runtime. The common way of starting this suite would be something like: TestNG runner = new TestNG(); if (runInParallel()) { // set parallel mode too here runner.setThreadCount(2); } // ... runner.run(); I'm now wondering if it is possible to do the same, but with the "set thread count" logic inside, say, an ISuiteListner or other suitable listener. If I were to use

Test Suite Run Spring Boot Once

…衆ロ難τιáo~ 提交于 2019-12-23 07:56:09
问题 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 mentioned @RunWith Suite.class. 回答1: If I understood your question, for you launch many tests with spring boot you can do something like this: 1) First create yours tests classes. Here I have the first test class: import static org.assertj.core.api