Fixes #496.
This commit is contained in:
parent
3ee1e115f4
commit
5d765fcc27
13 changed files with 29 additions and 3 deletions
4
tests/testCommand/testsIgnore/testing123.nim
Normal file
4
tests/testCommand/testsIgnore/testing123.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
proc myFunc*() =
|
||||
echo "Executing my func"
|
||||
|
||||
4
tests/testCommand/testsIgnore/testing123.nimble
Normal file
4
tests/testCommand/testsIgnore/testing123.nimble
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
version = "0.1.0"
|
||||
author = "John Doe"
|
||||
description = "Nimble Test"
|
||||
license = "BSD"
|
||||
1
tests/testCommand/testsIgnore/tests/foobar/tignored.nim
Normal file
1
tests/testCommand/testsIgnore/tests/foobar/tignored.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "Should be ignored"
|
||||
1
tests/testCommand/testsIgnore/tests/ignore.nim
Normal file
1
tests/testCommand/testsIgnore/tests/ignore.nim
Normal file
|
|
@ -0,0 +1 @@
|
|||
echo "Should be ignored"
|
||||
7
tests/testCommand/testsIgnore/tests/taccept.nim
Normal file
7
tests/testCommand/testsIgnore/tests/taccept.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can accept":
|
||||
echo "First test"
|
||||
myFunc()
|
||||
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ proc execNimble(args: varargs[string]): tuple[output: string, exitCode: int] =
|
|||
|
||||
let path = getCurrentDir().parentDir() / "src"
|
||||
|
||||
let cmd = "PATH=" & path & ":$PATH " & quotedArgs.join(" ")
|
||||
let cmd = "DYLD_LIBRARY_PATH=/usr/local/opt/openssl@1.1/lib PATH=" & path & ":$PATH " & quotedArgs.join(" ")
|
||||
result = execCmdEx(cmd)
|
||||
checkpoint(result.output)
|
||||
|
||||
|
|
@ -682,6 +682,13 @@ suite "test command":
|
|||
check exitCode == QuitSuccess
|
||||
check outp.processOutput.inLines("overriden")
|
||||
|
||||
test "certain files are ignored":
|
||||
cd "testCommand/testsIgnore":
|
||||
let (outp, exitCode) = execNimble("test")
|
||||
check exitCode == QuitSuccess
|
||||
check(not outp.processOutput.inLines("Should be ignored"))
|
||||
check outp.processOutput.inLines("First test")
|
||||
|
||||
suite "check command":
|
||||
test "can succeed package":
|
||||
cd "binaryPackage/v1":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue