Closed kevinresol closed 7 years ago
If we just omit tests.hxml
if it is missing then that would do the trick, because one can append arbitrary arguments anyway.
What is the decision here?
Another related stuff is that I would like support non-libraries,
by removing -lib lib_name_from_haxelib_json
and move that into tests.hxml itself. But this would be breaking change.
I think you should just check if there's a tests.hxml and otherwise not pass it to the compiler. Similarly for non-lib tests, I would check if the haxelib.json exists and otherwise not generate that -lib argument.
Updated: https://github.com/back2dos/travix/commit/06c63560a15ccc90bc664cc5b15dbabddc000673
But there is a (minor) problem, that you cannot reliably pass relative class path with the -cp
argument. See https://github.com/HaxeFoundation/haxelib/issues/387
Instead of hardcoded as
tests.hxml