I have used both JUnit and TestNG with Maven. I like to keep my tests as
independent of the test framework as possible so I can switch back and
forth and upgrade to new framework versions as they come out without
having to rewrite potentially thousands of tests. By writing my tests as
described
I wasn't even aware that surefire had such a functionnality. I even do not
understand why it does.
If you want to do unit tests I would suggest you to use a real unit test
framework like junit, testng, ...
IMHO surefire should just be an orcherstrator and should not provide
functionnalities to repl