mirror of
https://github.com/status-im/nim-unittest2.git
synced 2025-02-22 06:38:07 +00:00
parent
0b44f30d9b
commit
299bc9a574
@ -651,6 +651,7 @@ proc suiteStarted(name: string) =
|
|||||||
withLock formattersLock:
|
withLock formattersLock:
|
||||||
{.gcsafe.}:
|
{.gcsafe.}:
|
||||||
for formatter in formatters:
|
for formatter in formatters:
|
||||||
|
let formatter = formatter # avoid lent iterator
|
||||||
formatter.suiteStarted(name)
|
formatter.suiteStarted(name)
|
||||||
|
|
||||||
proc suiteEnded() =
|
proc suiteEnded() =
|
||||||
@ -659,12 +660,14 @@ proc suiteEnded() =
|
|||||||
withLock formattersLock:
|
withLock formattersLock:
|
||||||
{.gcsafe.}:
|
{.gcsafe.}:
|
||||||
for formatter in formatters:
|
for formatter in formatters:
|
||||||
|
let formatter = formatter # avoid lent iterator
|
||||||
formatter.suiteEnded()
|
formatter.suiteEnded()
|
||||||
|
|
||||||
proc testStarted(name: string) =
|
proc testStarted(name: string) =
|
||||||
withLock formattersLock:
|
withLock formattersLock:
|
||||||
{.gcsafe.}:
|
{.gcsafe.}:
|
||||||
for formatter in formatters:
|
for formatter in formatters:
|
||||||
|
let formatter = formatter # avoid lent iterator
|
||||||
if not formatter.isNil:
|
if not formatter.isNil:
|
||||||
# Useless check that somehow prevents a method dispatch failure on macOS
|
# Useless check that somehow prevents a method dispatch failure on macOS
|
||||||
formatter.testStarted(name)
|
formatter.testStarted(name)
|
||||||
@ -673,6 +676,7 @@ proc testEnded(testResult: TestResult) =
|
|||||||
withLock formattersLock:
|
withLock formattersLock:
|
||||||
{.gcsafe.}:
|
{.gcsafe.}:
|
||||||
for formatter in formatters:
|
for formatter in formatters:
|
||||||
|
let formatter = formatter # avoid lent iterator
|
||||||
when paralleliseTests:
|
when paralleliseTests:
|
||||||
withLock outputLock:
|
withLock outputLock:
|
||||||
formatter.testEnded(testResult)
|
formatter.testEnded(testResult)
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
mode = ScriptMode.Verbose
|
mode = ScriptMode.Verbose
|
||||||
|
|
||||||
version = "0.0.8"
|
version = "0.0.9"
|
||||||
author = "Status Research & Development GmbH"
|
author = "Status Research & Development GmbH"
|
||||||
description = "unittest fork with support for parallel test execution"
|
description = "unittest fork with support for parallel test execution"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
requires "nim >= 1.2.0"
|
requires "nim >= 1.6.0"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user