Fork/Join JUnit Extensions

JUnit Extensions that use fork/join for parallel test execution.

Лицензия

Лицензия

MIT
Категории

Категории

JUnit Тестирование компонентов
Группа

Группа

com.github.marschall
Идентификатор

Идентификатор

fork-join-junit-extensions
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Fork/Join JUnit Extensions
JUnit Extensions that use fork/join for parallel test execution.
Ссылка на сайт

Ссылка на сайт

https://github.com/marschall/fork-join-junit-extensions
Система контроля версий

Система контроля версий

https://github.com/marschall/fork-join-junit-extensions

Скачать fork-join-junit-extensions

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.marschall/fork-join-junit-extensions/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>fork-join-junit-extensions</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/fork-join-junit-extensions/
implementation 'com.github.marschall:fork-join-junit-extensions:0.1.0'
// https://jarcasting.com/artifacts/com.github.marschall/fork-join-junit-extensions/
implementation ("com.github.marschall:fork-join-junit-extensions:0.1.0")
'com.github.marschall:fork-join-junit-extensions:jar:0.1.0'
<dependency org="com.github.marschall" name="fork-join-junit-extensions" rev="0.1.0">
  <artifact name="fork-join-junit-extensions" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='fork-join-junit-extensions', version='0.1.0')
)
libraryDependencies += "com.github.marschall" % "fork-join-junit-extensions" % "0.1.0"
[com.github.marschall/fork-join-junit-extensions "0.1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

Fork/Join JUnit Extensions

This project allows you to run JUnit tests in parallel using Java 7 Fork/Join.

This complements Maven Surefire Plugin. Maven Surefire Plugin parallelizes at the class level and does not work in Eclipse or dynamically generated tests. This parallelizes tests in a class and works in Eclipse.

When you have lots of test classes where each runs quickly you want to use Maven Surefire Plugin. When you have few test classes that take a lot of time and have more than one test you want to use this.

Usage

<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>fork-join-junit-extensions</artifactId>
    <version>0.1.0</version>
    <scope>test</scope>
</dependency>

You have to run your tests with ForkJoinSuite.

@RunWith(ForkJoinSuite.class)
public class MyTest {

  @Test
  public void test1() {
    // test code
  }
  
  // more tests methods

}

Customization

With @ForkJoinParameters you can to set the actual runner to use (defaults to JUnit4Builder) and optionally the parallelism you want to have (defaults to number of CPUs).

@RunWith(ForkJoinSuite.class)
@ForkJoinParameters(runnerBuilder = ParameterizedBuilder.class, parallelism = 2)
public class MyParameterizedTest {

  @Parameter
  String parameter;

  @Test
  public void test1() {
    // test code
  }
  
  // more tests methods

  @Parameters
  public static Collection<Object[]> parameters() {
    // build parameters
  }

}

Версии библиотеки

Версия
0.1.0