Skip to content

Commit

Permalink
3.1.0: thread state icons
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed May 31, 2021
1 parent 6c0ca7f commit 58d3ead
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion balls.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "3.0.1"
version = "3.1.0"
author = "disruptek"
description = "a unittest framework with balls 🔴🟡🟢"
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions balls/runner.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions balls/spec.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions balls/style.nim
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ const
statusStyles*: array[StatusKind, Styling] = [
None: resetStyle,
Info: informStyle,
Wait: informStyle,
Runs: informStyle,
Pass: successStyle,
Skip: commentStyle,
Part: partialStyle,
Expand Down

0 comments on commit 58d3ead

Please sign in to comment.