nitunit: the working dir is now `nitunit.out`
authorJean Privat <jean@pryen.org>
Fri, 27 May 2016 02:31:05 +0000 (22:31 -0400)
committerJean Privat <jean@pryen.org>
Fri, 27 May 2016 02:32:33 +0000 (22:32 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

share/man/nitunit.md
src/testing/testing_base.nit

index e80e80e..66bf749 100644 (file)
@@ -268,7 +268,7 @@ Output name (default is 'nitunit.xml').
 `nitunit` produces a XML file compatible with JUnit.
 
 ### `--dir`
 `nitunit` produces a XML file compatible with JUnit.
 
 ### `--dir`
-Working directory (default is '.nitunit').
+Working directory (default is 'nitunit.out').
 
 In order to execute the tests, nit files are generated then compiled and executed in the giver working directory.
 
 
 In order to execute the tests, nit files are generated then compiled and executed in the giver working directory.
 
index 26c3a4b..ddc167f 100644 (file)
@@ -35,7 +35,7 @@ redef class ToolContext
        # Working directory for testing.
        fun test_dir: String do
                var dir = opt_dir.value
        # Working directory for testing.
        fun test_dir: String do
                var dir = opt_dir.value
-               if dir == null then return ".nitunit"
+               if dir == null then return "nitunit.out"
                return dir
        end
 
                return dir
        end