Tester improvements.
This commit is contained in:
parent
612c084688
commit
23e2932be8
1 changed files with 6 additions and 1 deletions
|
|
@ -77,6 +77,7 @@ test "can validate package structure (#144)":
|
||||||
let (output, exitCode) = execNimble(["install", "-y"])
|
let (output, exitCode) = execNimble(["install", "-y"])
|
||||||
check exitCode == QuitSuccess
|
check exitCode == QuitSuccess
|
||||||
let lines = output.strip.splitLines()
|
let lines = output.strip.splitLines()
|
||||||
|
checkpoint(output)
|
||||||
case package
|
case package
|
||||||
of "x":
|
of "x":
|
||||||
check inLines(lines, "Package 'x' has an incorrect structure. It should" &
|
check inLines(lines, "Package 'x' has an incorrect structure. It should" &
|
||||||
|
|
@ -128,7 +129,9 @@ test "issue 113 (uninstallation problems)":
|
||||||
check execNimble(["remove", "-y", "c"]).exitCode == QuitSuccess
|
check execNimble(["remove", "-y", "c"]).exitCode == QuitSuccess
|
||||||
|
|
||||||
test "can refresh with default urls":
|
test "can refresh with default urls":
|
||||||
check execNimble(["refresh"]).exitCode == QuitSuccess
|
let (output, exitCode) = execNimble(["refresh"])
|
||||||
|
checkpoint(output)
|
||||||
|
check exitCode == QuitSuccess
|
||||||
|
|
||||||
proc safeMoveFile(src, dest: string) =
|
proc safeMoveFile(src, dest: string) =
|
||||||
try:
|
try:
|
||||||
|
|
@ -162,9 +165,11 @@ test "can refresh with custom urls":
|
||||||
url = "http://google.com/404"
|
url = "http://google.com/404"
|
||||||
url = "http://irclogs.nim-lang.org/packages.json"
|
url = "http://irclogs.nim-lang.org/packages.json"
|
||||||
url = "http://nim-lang.org/nimble/packages.json"
|
url = "http://nim-lang.org/nimble/packages.json"
|
||||||
|
url = "https://github.com/nim-lang/packages/raw/master/packages.json"
|
||||||
""".unindent)
|
""".unindent)
|
||||||
|
|
||||||
let (output, exitCode) = execNimble(["refresh", "--verbose"])
|
let (output, exitCode) = execNimble(["refresh", "--verbose"])
|
||||||
|
checkpoint(output)
|
||||||
let lines = output.strip.splitLines()
|
let lines = output.strip.splitLines()
|
||||||
check exitCode == QuitSuccess
|
check exitCode == QuitSuccess
|
||||||
check inLines(lines, "config file at")
|
check inLines(lines, "config file at")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue