diff --git a/balls.nimble b/balls.nimble index 597a1b5..faf99c6 100644 --- a/balls.nimble +++ b/balls.nimble @@ -1,4 +1,4 @@ -version = "3.0.1" +version = "3.1.0" author = "disruptek" description = "a unittest framework with balls 🔴🟡🟢" license = "MIT" diff --git a/balls/runner.nim b/balls/runner.nim index 4dcc070..63220df 100644 --- a/balls/runner.nim +++ b/balls/runner.nim @@ -395,7 +395,9 @@ proc performThreaded(p: Payload) {.thread.} = var ran: string {.gcsafe.}: ran = p.profile.run + p.status[] = Wait withRLock p.cache[]: + p.status[] = Runs p.status[] = perform p.profile case p.status[] of Pass: diff --git a/balls/spec.nim b/balls/spec.nim index 5a0ccd9..31e55f0 100644 --- a/balls/spec.nim +++ b/balls/spec.nim @@ -64,6 +64,8 @@ when ballsDry: StatusKind* = enum ## possible test results None = " " ## (undefined) Info = "⊚" ## may prefix information + Wait = "⏲" ## pending cache access + Runs = "🮲" ## currently runs Pass = "●" ## total success Skip = "⸮" ## test was skipped Part = "◐" ## partial success @@ -79,6 +81,8 @@ else: StatusKind* = enum ## possible test results None = " " ## (undefined) Info = "🔵" ## may prefix information + Wait = "⏳" ## pending cache access + Runs = "🏃" ## currently runs Pass = "🟢" ## total success Skip = "❔" ## test was skipped Part = "🟡" ## partial success diff --git a/balls/style.nim b/balls/style.nim index 94b95fb..05770f1 100644 --- a/balls/style.nim +++ b/balls/style.nim @@ -56,6 +56,8 @@ const statusStyles*: array[StatusKind, Styling] = [ None: resetStyle, Info: informStyle, + Wait: informStyle, + Runs: informStyle, Pass: successStyle, Skip: commentStyle, Part: partialStyle,