-
Notifications
You must be signed in to change notification settings - Fork 163
Closed
Milestone
Description
Tests that pass via "mvn test" fail when run from VS Code, seemingly because it isn't executing the Maven Surefire plugin to remove some run-time dependencies from the test classpath.
Background:
The SLF4J folks officially recommend using this testing SLF4J implementation for unit tests:
http://projects.lidalia.org.uk/slf4j-test/
Because SLF4J doesn't like multiple implementations, the test library asks you to use the Maven Surefire plugin to remove logback (or whatever SLF4J implementation) from the test classpath (see link).
This works fine when I run tests from the Maven CLI ("mvn test"), but I get a "Class path contains multiple SLF4J bindings" error when trying to run the tests from VS Code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels