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"
|
||||
4
tests/testCommand/testsFail/testing123.nim
Normal file
4
tests/testCommand/testsFail/testing123.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
proc myFunc*() =
|
||||
echo "Executing my func"
|
||||
|
||||
4
tests/testCommand/testsFail/testing123.nimble
Normal file
4
tests/testCommand/testsFail/testing123.nimble
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
version = "0.1.0"
|
||||
author = "John Doe"
|
||||
description = "Nimble Test"
|
||||
license = "BSD"
|
||||
6
tests/testCommand/testsFail/tests/a.nim
Normal file
6
tests/testCommand/testsFail/tests/a.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can compile nimble":
|
||||
echo "First test"
|
||||
myFunc()
|
||||
|
||||
6
tests/testCommand/testsFail/tests/b.nim
Normal file
6
tests/testCommand/testsFail/tests/b.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can compile nimble":
|
||||
echo "Failing Second test"
|
||||
assert(false)
|
||||
|
||||
7
tests/testCommand/testsFail/tests/c.nim
Normal file
7
tests/testCommand/testsFail/tests/c.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can compile nimble":
|
||||
echo "Third test"
|
||||
myFunc()
|
||||
|
||||
|
||||
4
tests/testCommand/testsPass/testing123.nim
Normal file
4
tests/testCommand/testsPass/testing123.nim
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
proc myFunc*() =
|
||||
echo "Executing my func"
|
||||
|
||||
4
tests/testCommand/testsPass/testing123.nimble
Normal file
4
tests/testCommand/testsPass/testing123.nimble
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
version = "0.1.0"
|
||||
author = "John Doe"
|
||||
description = "Nimble Test"
|
||||
license = "BSD"
|
||||
6
tests/testCommand/testsPass/tests/one.nim
Normal file
6
tests/testCommand/testsPass/tests/one.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can compile nimble":
|
||||
echo "First test"
|
||||
myFunc()
|
||||
|
||||
7
tests/testCommand/testsPass/tests/three.nim
Normal file
7
tests/testCommand/testsPass/tests/three.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can compile nimble":
|
||||
echo "Third test"
|
||||
myFunc()
|
||||
|
||||
|
||||
7
tests/testCommand/testsPass/tests/two.nim
Normal file
7
tests/testCommand/testsPass/tests/two.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import testing123, unittest
|
||||
|
||||
test "can compile nimble":
|
||||
echo "Second test"
|
||||
myFunc()
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue