Skip to content

Instantly share code, notes, and snippets.

View mustafau's full-sized avatar

Mustafa Ulu mustafau

View GitHub Profile
@mustafau
mustafau / ParallelParameterized.java
Created May 16, 2013 15:20
Parallelize JUnit parameterized tests.
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.junit.runners.Parameterized;
import org.junit.runners.model.RunnerScheduler;
public class ParallelParameterized extends Parameterized {
public ParallelParameterized(Class<?> arg0) throws Throwable {
@mustafau
mustafau / ParallelSuite.java
Last active November 10, 2019 09:06
Parallelize JUnit test suites.
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.junit.runners.Suite;
import org.junit.runners.model.InitializationError;
import org.junit.runners.model.RunnerBuilder;
import org.junit.runners.model.RunnerScheduler;
public class ParallelSuite extends Suite {