Merge: nitunit: set NIT_TESTING_PATH
authorJean Privat <jean@pryen.org>
Fri, 2 Dec 2016 15:13:38 +0000 (10:13 -0500)
committerJean Privat <jean@pryen.org>
Fri, 2 Dec 2016 15:13:38 +0000 (10:13 -0500)
When working with test suites, one can now use `NIT_TESTING_PATH` to retrieve the test suite path.

It can be used to access files based on the current test suite location:

~~~nit
class MyTest
super TestSuite

    fun test_suite_path do
        assert "NIT_TESTING_PATH".environ.basename == "my_test_suite.nit"
    end
end
~~~

Useful for test suites based on model loading like in #2327.

Pull-Request: #2331


Trivial merge