Better JUnit integration
Enhance integration with JUnit in order to allow each thymeleaf test (.thtest) to be counted by JUnit as a separated test, so that execution summary figures better reflect the real amount of executed tests.
This would be awesome to have IMO. Have you seen what I've been doing to make each test file equate to a single JUnit test? https://github.com/ultraq/thymeleaf-layout-dialect/blob/master/Tests/nz/net/ultraq/thymeleaf/tests/decorator/DecoratorTester.java And that's just 1 of about 4 files like it. Soooo much boilerplate!
This would help us a lot too! Especially since we are using the testing framework to test over 500 templates used in our applications.
I finally got tired of the boilerplate involved with hooking up a new thtest file w/ JUnit, so I went looking for a way to dynamically generate a test for every Thymeleaf test file, and stumbled across JUnit's Parameterized tests feature. I ended-up creating this class (JUnitThymeleafTestExecutor.java) to replace all the other ones I had that just mapped Thymeleaf tests to JUnit tests.
It's not exactly the same as it was before (tests are still reported on separately, but aren't grouped by package any more as they're all effectively run by this single class), but maybe it's a good starting point for this issue? I'm just glad I don't have to write any more @Test-annotated methods, just Thymeleaf test files! :)
See https://github.com/opensource21/fuwesta/blob/master/fuwesta-core/src/test/java/de/ppi/fuwesta/thymeleaf/basic/ThymeleafTest.java for an approach. There each testfile is a separate JUnit-Test.