runTestDataFileTests

Iterates over all files in the given folder, reads them as D files until a __EOF__ token is encountered, then parses the following lines in this format per file: - If the line is empty or starts with // ignore it - If the line starts with : it's a variable assignment in form :variable=JSON - Otherwise it's a tab separated line like 1 2 3 Finally, it's tested that at least one test has been tested.

version(unittest)
void
runTestDataFileTests
(
string dir
,
void delegate
()
onFileStart
,
void delegate
(
string code
,
string variable
,
JSONValue value
)
setVariable
,
void delegate
(
string code
,
string[] parts
,
string line
)
onTestLine
,
void delegate
(
string code
)
onFileFinished
,
string __file = __FILE__
,
size_t __line = __LINE__
)

Meta