All junit tests are not being run
Pure Java HTML / CSS rendering engine
Status: Beta
Brought to you by:
radkovo
Some of the unit tests are not run via maven test. Tests like DOMAssignDirect don't have a Test at the end, and hence they are not run.
There are two solutions to this:
1. Either rename these classes to have a Test suffix.
2. Or ensure the tests are run by configuring maven plugins correctly as described here: https://maven.apache.org/surefire/maven-surefire-plugin/examples/junit.html
I couldn't get (2) to work, but I am not a maven expert. (1) works fine. If you are okay I can make a PR with (1)
Anonymous
I encountered this while making a test-case for issue #63.
Here's my test-case:
The second sub-test fails.
After 8 hours of work, found the solution: maven won't run tests unless the classes have a
Test
prefix or suffix.Source: http://stackoverflow.com/questions/6178583/maven-does-not-find-junit-tests-to-run/
I will submit a PR with files renamed.
Wow, well done. I was running the tests locally in Eclipse so I didn't notice this.
Ok, seems to be fixed by your PR #8 & #9.