Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run tests with maven due to missing TestEngine implementation in the classpath #4

Open
macieklukasik88 opened this issue Jul 7, 2020 · 0 comments

Comments

@macieklukasik88
Copy link

Steps to reproduce:

  1. Copy-paste POM file to new project/directory
  2. Add sample JUnit test
  3. Invoke test run with command:
    mvn clean test

Actual results:
Test run failed to start due to error:
[ERROR] There was an error in the forked process [ERROR] org.junit.platform.commons.PreconditionViolationException: Cannot create Launcher without at least one TestEngine; consider adding an engine implementation JAR to the classpath

Possible workaround:

  1. Add 'junit-jupiter-engine' depenendecy to POM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant