Skip to content

Commit 96df458

Browse files
CyberTailordom96
authored andcommitted
Add nimble clean test
1 parent f7486a1 commit 96df458

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

tests/tcleancommand.nim

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (C) Nimble Authors. All rights reserved.
2+
# BSD License. Look at license.txt for more info.
3+
4+
{.used.}
5+
6+
import unittest, os
7+
import testscommon
8+
from nimblepkg/common import cd
9+
10+
suite "nimble clean":
11+
test "can clean":
12+
cd "run":
13+
check execNimbleYes("build").exitCode == QuitSuccess
14+
check fileExists("run".addFileExt(ExeExt))
15+
16+
check execNimbleYes("clean").exitCode == QuitSuccess
17+
check not fileExists("run".addFileExt(ExeExt))

tests/tester.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import testscommon
66
# suits imports
77

88
import tcheckcommand
9+
import tcleancommand
910
import tdevelopfeature
1011
import tissues
1112
import tlocaldeps

0 commit comments

Comments
 (0)