From c6ecdd4c8353b6184d5e2bbc28427128652d9c0a Mon Sep 17 00:00:00 2001 From: TiynGER Date: Sat, 15 May 2021 00:46:35 +0200 Subject: [PATCH] tests: created tests dir The tests where cluttering the src dir so i moved them to a separate dir. Same goes for the binaries so i changed the outputdirectory for them and added these to the new gitignore file --- .gitignore | 3 +++ {src => tests}/chessTest.nim | 2 +- {src => tests}/engineTest.nim | 4 ++-- tests/nim.cfg | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .gitignore rename {src => tests}/chessTest.nim (99%) rename {src => tests}/engineTest.nim (97%) create mode 100644 tests/nim.cfg diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cd0cb80 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +bin +docs +secret.nim diff --git a/src/chessTest.nim b/tests/chessTest.nim similarity index 99% rename from src/chessTest.nim rename to tests/chessTest.nim index c5eeb04..e2e5049 100644 --- a/src/chessTest.nim +++ b/tests/chessTest.nim @@ -1,7 +1,7 @@ import einheit import algorithm -include ./chess.nim +include chess testSuite ChessTest of TestSuite: diff --git a/src/engineTest.nim b/tests/engineTest.nim similarity index 97% rename from src/engineTest.nim rename to tests/engineTest.nim index deba278..bc9323a 100644 --- a/src/engineTest.nim +++ b/tests/engineTest.nim @@ -1,7 +1,7 @@ import einheit -include ./chess.nim -include ./engine.nim +include chess +include engine testSuite ChessTest of TestSuite: diff --git a/tests/nim.cfg b/tests/nim.cfg new file mode 100644 index 0000000..f7f73d6 --- /dev/null +++ b/tests/nim.cfg @@ -0,0 +1,2 @@ +--path:"../src/" +--outdir:"../bin/tests/"