JUnit and test files

I have a large number (from hundreds to thousands) of test files in an application I am developing. What is the proper way to test my code against all of these files as part of a test suite or test suite JUnit

?

I could write one test method that loops through all N files, but I don't want a single failure / skip verdict on whether all test files were processed successfully.

Is there a way to get the JUnit to post explicitly and separately in a test file each ?

+3


source to share


1 answer


Use ErrorCollector

to check. This will check all files and provide all files that are not running (set the filename as message under control).



ErrorCollector

+3


source







All Articles