Skip to content

Commit

Permalink
Add nimble clean test
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberTailor authored and dom96 committed Dec 22, 2021
1 parent f7486a1 commit 96df458
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/tcleancommand.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) Nimble Authors. All rights reserved.
# BSD License. Look at license.txt for more info.

{.used.}

import unittest, os
import testscommon
from nimblepkg/common import cd

suite "nimble clean":
test "can clean":
cd "run":
check execNimbleYes("build").exitCode == QuitSuccess
check fileExists("run".addFileExt(ExeExt))

check execNimbleYes("clean").exitCode == QuitSuccess
check not fileExists("run".addFileExt(ExeExt))
1 change: 1 addition & 0 deletions tests/tester.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import testscommon
# suits imports

import tcheckcommand
import tcleancommand
import tdevelopfeature
import tissues
import tlocaldeps
Expand Down

0 comments on commit 96df458

Please sign in to comment.