Refactoring and many fixes to PR #378. (Broken)
This commit is broken due to a cleanup issue with NimScript eval.
This commit is contained in:
parent
6a851f5b87
commit
301a366dd2
18 changed files with 150 additions and 100 deletions
1
tests/testCommand/testOverride/myTester.nim
Normal file
1
tests/testCommand/testOverride/myTester.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo("overriden")
|
||||
9
tests/testCommand/testOverride/pkga.nimble
Normal file
9
tests/testCommand/testOverride/pkga.nimble
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
version = "0.1.0"
|
||||
author = "John Doe"
|
||||
description = "Nimble Test"
|
||||
license = "BSD"
|
||||
|
||||
skipFiles = @["myTester.nim"]
|
||||
|
||||
task test, "Custom tester":
|
||||
exec "nim c -r myTester.nim"
|
||||
|
|
@ -557,22 +557,29 @@ suite "develop feature":
|
|||
createDir(cloneDir)
|
||||
cd cloneDir:
|
||||
let url = "https://github.com/nimble-test/packagea.git"
|
||||
let (output, exitCode) = execNimble("develop", "-y", url)
|
||||
let (_, exitCode) = execNimble("develop", "-y", url)
|
||||
check exitCode == QuitSuccess
|
||||
|
||||
test "Runs passing unit tests":
|
||||
cd "testsPass":
|
||||
let (outp, exitCode) = execNimble("test")
|
||||
check: exitCode == QuitSuccess
|
||||
check: outp.processOutput.inLines("First test")
|
||||
check: outp.processOutput.inLines("Second test")
|
||||
check: outp.processOutput.inLines("Third test")
|
||||
check: outp.processOutput.inLines("Executing my func")
|
||||
suite "test command":
|
||||
test "Runs passing unit tests":
|
||||
cd "testCommand/testsPass":
|
||||
let (outp, exitCode) = execNimble("test")
|
||||
check exitCode == QuitSuccess
|
||||
check outp.processOutput.inLines("First test")
|
||||
check outp.processOutput.inLines("Second test")
|
||||
check outp.processOutput.inLines("Third test")
|
||||
check outp.processOutput.inLines("Executing my func")
|
||||
|
||||
test "Runs failing unit tests":
|
||||
cd "testsFail":
|
||||
let (outp, exitCode) = execNimble("test")
|
||||
check: exitCode == QuitFailure
|
||||
check: outp.processOutput.inLines("First test")
|
||||
check: outp.processOutput.inLines("Failing Second test")
|
||||
check: not outp.processOutput.inLines("Third test")
|
||||
test "Runs failing unit tests":
|
||||
cd "testCommand/testsFail":
|
||||
let (outp, exitCode) = execNimble("test")
|
||||
check exitCode == QuitFailure
|
||||
check outp.processOutput.inLines("First test")
|
||||
check outp.processOutput.inLines("Failing Second test")
|
||||
check(not outp.processOutput.inLines("Third test"))
|
||||
|
||||
test "test command can be overriden":
|
||||
cd "testCommand/testOverride":
|
||||
let (outp, exitCode) = execNimble("test")
|
||||
check exitCode == QuitSuccess
|
||||
check outp.processOutput.inLines("overriden")
|
||||
Loading…
Add table
Add a link
Reference in a new issue