Am 10.11.19 um 11:45 schrieb Jonas Maebe:
On 2019-11-10 10:54, Michael Van Canneyt wrote:
It's not just the waste of time, it's also the origanization of the
sources.
See my mail to Florian. I have 1 application that has all the tests. It's
easy to navigate & whatnot.
The nice thing about your punit-based tests is that they can just as
easily be used in a single test application as in multiple individual
test applications. Since the testsuite only tries to compile and execute
source files starting with "t", there would be no problem with also
adding your single top-level application there as long as its name
starts with another character.
We could even have just the single top-level application in the
testsuite (along with all of the individual subject tests as units, like
it was in the code you added to svn), since for testing unit
functionality having separate test programs is indeed less important
(and it's still very easy to make one if it is necessary for some reason
at one point).
The funny part of this discussion is: if we add all system unit tests
into Michael's scheme and his single test application, running this
single test would probably more time than running currently all
regression tests. theapthread testing heap management and threading
takes alone 35 sec :)
_______________________________________________
fpc-devel maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel