This will be useful for situations where someone wants to know if a specific test has executed a specific line of code.
The unittest name can be retrieved from argv (notArgv), but that won't say anything about which testcase it came from. Maybe the context for the unittest can also be passed as an argument.
It might make sense to just log all of argv, after the dynamic fields. The main issue here is that there will need to be a match between the header (written in RunCompiler.hs), the binary execution (called in TestRunner.hs), and the logging (done in logging.cpp.)
This will be useful for situations where someone wants to know if a specific test has executed a specific line of code.
The
unittest
name can be retrieved fromargv
(notArgv
), but that won't say anything about whichtestcase
it came from. Maybe the context for theunittest
can also be passed as an argument.It might make sense to just log all of
argv
, after the dynamic fields. The main issue here is that there will need to be a match between the header (written inRunCompiler.hs
), the binary execution (called inTestRunner.hs
), and the logging (done inlogging.cpp
.)