diff --git a/dspot/src/main/java/fr/inria/stamp/test/runner/DefaultTestRunner.java b/dspot/src/main/java/fr/inria/stamp/test/runner/DefaultTestRunner.java index fb3cd2083..cbf13764f 100644 --- a/dspot/src/main/java/fr/inria/stamp/test/runner/DefaultTestRunner.java +++ b/dspot/src/main/java/fr/inria/stamp/test/runner/DefaultTestRunner.java @@ -46,6 +46,7 @@ public TestListener run(Class testClass, Collection testMethodNames, RunNotifier runNotifier = new RunNotifier(); Arrays.stream(additionalListeners).forEach(runNotifier::addListener); runNotifier.addFirstListener(listener); + Thread.currentThread().setContextClassLoader(this.classLoader); runner.run(runNotifier); }); try {