From 9068e8e43a1bc2d2f250d3ce43d408073c159095 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Sat, 9 Sep 2017 23:15:08 +0300 Subject: [PATCH] Added a test --- tests/tester.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/tester.nim b/tests/tester.nim index 582e5ac..51328ea 100644 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -560,6 +560,17 @@ suite "develop feature": let (_, exitCode) = execNimble("develop", "-y", url) check exitCode == QuitSuccess + test "nimble path points to develop": + cd "develop/srcdirtest": + var (output, exitCode) = execNimble("develop") + checkpoint output + check exitCode == QuitSuccess + + (output, exitCode) = execNimble("path", "srcdirtest") + checkpoint output + check exitCode == QuitSuccess + check output.strip() == getCurrentDir() / "src" + suite "test command": test "Runs passing unit tests": cd "testCommand/testsPass":