Fixes #710.
This commit is contained in:
parent
c85cdfd814
commit
46dc98bb62
3 changed files with 60 additions and 21 deletions
13
tests/invalidPackage/invalidPackage.nimble
Normal file
13
tests/invalidPackage/invalidPackage.nimble
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Dominik Picheta"
|
||||
description = "A new awesome nimble package"
|
||||
license = "MIT"
|
||||
srcDir = "src"
|
||||
|
||||
thisFieldDoesNotExist = "hello"
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 0.20.0"
|
||||
|
|
@ -86,6 +86,13 @@ test "depsOnly + flag order test":
|
|||
check(not output.contains("Success: packagebin2 installed successfully."))
|
||||
check exitCode == QuitSuccess
|
||||
|
||||
test "nimscript evaluation error message":
|
||||
cd "invalidPackage":
|
||||
var (output, exitCode) = execNimble("check")
|
||||
let lines = output.strip.processOutput()
|
||||
check(lines[^2].endsWith("Error: undeclared identifier: 'thisFieldDoesNotExist'"))
|
||||
check exitCode == QuitFailure
|
||||
|
||||
test "caching of nims and ini detects changes":
|
||||
cd "caching":
|
||||
var (output, exitCode) = execNimble("dump")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue