diff --git a/testes.nim b/testes.nim index 138074e..0e65265 100644 --- a/testes.nim +++ b/testes.nim @@ -2,7 +2,6 @@ import std/times import std/os import std/sequtils import std/terminal -import std/sugar import std/strutils import std/macros import std/colors @@ -10,19 +9,19 @@ import std/colors when (NimMajor, NimMinor) >= (1, 3): import std/exitprocs else: - # the is the best solution to --useVersion:1.0 i guess... + # this is the best solution to --useVersion:1.0 i guess... when not compiles(AssertionDefect): type AssertionDefect = AssertionError proc setProgramResult(q: int) = programResult = q -import cutelog import grok/mem import grok/time import bytes2human -export sugar, strutils, macros, cutelog, execShellCmd +when defined(windows): + export execShellCmd const statements = { @@ -555,23 +554,6 @@ macro testes*(tests: untyped) = finally: result.add reportResults() -when isMainModule: - import std/options - - import bump - import cligen - - let - logger = newCuteConsoleLogger() - addHandler(logger) - - const - release = projectVersion() - if release.isSome: - clCfg.version = $release.get - else: - clCfg.version = "(unknown version)" - when false: proc massageLabel(n: NimNode): NimNode = assert not n.isNil diff --git a/testes.nimble b/testes.nimble index 738f385..0faf81a 100644 --- a/testes.nimble +++ b/testes.nimble @@ -4,9 +4,9 @@ description = "a cure for salty testes" license = "MIT" requires "nim >= 1.0.4" #requires "cligen >= 0.9.41 & <= 0.9.45" -requires "bump >= 1.8.18 & < 2.0.0" +#requires "bump >= 1.8.18 & < 2.0.0" #requires "https://github.com/disruptek/badresults < 2.0.0" -requires "https://github.com/disruptek/cutelog >= 1.1.0 & < 2.0.0" +#requires "https://github.com/disruptek/cutelog >= 1.1.0 & < 2.0.0" requires "https://github.com/disruptek/grok >= 0.0.4 & < 1.0.0" requires "https://github.com/juancarlospaco/nim-bytes2human"