nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/dot: rename `exemples` to `examples`
[nit.git]
/
lib
/
popcorn
/
pop_tests.nit
diff --git
a/lib/popcorn/pop_tests.nit
b/lib/popcorn/pop_tests.nit
index
1deaeab
..
6c5985d
100644
(file)
--- a/
lib/popcorn/pop_tests.nit
+++ b/
lib/popcorn/pop_tests.nit
@@
-131,6
+131,11
@@
class TestPopcorn
# Port used to run App.
var port: Int = test_port
# Port used to run App.
var port: Int = test_port
+ # Directory of the current test suite
+ #
+ # Useful when your tested app need to load some external files.
+ var test_path: String = "NIT_TESTING_PATH".environ.dirname
+
# Run the test suite on the App.
fun run_test(app: App) do
var server = new AppThread(host, port, app)
# Run the test suite on the App.
fun run_test(app: App) do
var server = new AppThread(host, port, app)