Closed skydetulliov closed 4 years ago
Hi, I am encountering the exact same issue. Is there any workaround/solution for it apart from moving back to Junit4?
@skydetulliov , @jamesdbloom: Any update on this?
@amankapoor27 I couldn't find any workaround, sorry... I was hoping for something from the mock-server people :(
It is most likely a bug in eclipse and the way it has integrated JUnit5 and is pretty much out of the scope of MockServer. For example, this issue isn't seen in IntelliJ. I can have a look at this issue as some point soon(ish). MockServer is not doing anything specific except including the following dependency:
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.5.2</version>
<scope>compile</scope>
</dependency>
You could try and see if you explicitly include that dependency likely you'll get the same problem. Then that would prove it is an Ecplise bug or something specific to your project setup.
Hi @skydetulliov and @jamesdbloom , thanks for the quick response, much appreciated.... I will try run the tests via Gradle and also via IntelliJ and will let you guys know if it works...
By the way, I also faced the exact same issue while trying to integrate wire mock in my Junit5 tests, not sure why by it seems a generic issue with using mock servers with junit5..
Working fine when running with IntelliJ Idea. Also working with gradle using >gradle test command
On Wed, Jun 3, 2020 at 1:06 PM aman-inbetween notifications@github.com wrote:
Hi @skydetulliov https://github.com/skydetulliov and @jamesdbloom https://github.com/jamesdbloom , thanks for the quick response, much appreciated.... I will try run the tests via Gradle and also via IntelliJ and will let you guys know if it works...
By the way, I also faced the exact same issue while trying to integrate wire mock in my Junit5 tests, not sure why by it seems a generic issue with using mock servers with junit5..
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mock-server/mockserver/issues/733#issuecomment-638017929, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH6T6OVNQMJ3WDKLZ6NMEBLRUX4P7ANCNFSM4KZFXSXQ .
I'm going to close this issue as it is caused by a bug in Eclipse
I have a maven-based java project that uses spring boot, camel and have some unit tests written with junit5. I run the tests from eclipse (current version). Now I added the mock server dependency in the pom... and eclipse tells me that "No tests found with test runner 'JUnit 5'." If I remove the dependency, everything is good again... Can you help me? Do you have some idea of what is happening?
this is my pom