nitunit: prevent generated files to be part of the package
authorJean Privat <jean@pryen.org>
Thu, 19 May 2016 02:24:14 +0000 (22:24 -0400)
committerJean Privat <jean@pryen.org>
Thu, 19 May 2016 02:24:14 +0000 (22:24 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/nitunit.nit

index cc9ea85..1cffdf5 100644 (file)
@@ -65,6 +65,10 @@ end
 
 "NIT_TESTING".setenv("true")
 
+var test_dir = toolcontext.test_dir
+test_dir.mkdir
+"# This file prevents the Nit modules of the directory to be part of the package".write_to_file(test_dir / "packages.ini")
+
 var page = new HTMLTag("testsuites")
 
 if toolcontext.opt_full.value then mmodules = model.mmodules