setup nimble test

This commit is contained in:
Zahary Karadjov 2018-04-11 14:48:34 +03:00
parent 9ebf3990fd
commit 12d45a7e08
4 changed files with 31 additions and 3 deletions

15
.gitignore vendored
View File

@ -1 +1,16 @@
# Ignore all files without extensions (unix executable files)
*
!*.*
!*/
# Ignore all binary outputs
*.so
*.dylib
*.a
*.la
*.exe
*.dll
# Ignore the nimcache folders
nimcache/

View File

@ -6,4 +6,15 @@ license = "Apache License 2.0"
srcDir = "src"
### Dependencies
requires "nim >= 0.17.3"
requires "nim >= 0.17.3",
"nimcrypto"
proc configForTests() =
--hints: off
--debuginfo
--path: "."
--run
task test, "run tests":
configForTests()
setCommand "c", "tests/all.nim"

3
tests/all.nim Normal file
View File

@ -0,0 +1,3 @@
import
testutils, testserverclient

View File

@ -1,4 +1,4 @@
import strutils, ../src/server/private/transportutils, unittest
import strutils, eth-rpc/server/private/transportutils, unittest
suite "Encoding":
test "Encode quantity":
@ -13,4 +13,3 @@ suite "Encoding":
for i, b in bytePairs(0x07_06_05_04_03_02_01_00'u64):
check b == i.byte