Jacek Sieka
0b44f30d9b
avoid potential capture of lent iterator var ( #29 )
...
also avoid `quote do` for better line numbers in error messages
2023-08-22 06:50:19 +02:00
jangko
21ed62449d
remove nim 1.2 and 1.4 support
2023-07-28 10:53:13 +07:00
Jacek Sieka
4d5dbb569a
fix stackTrace symbol usage
2023-06-05 23:34:42 +02:00
Tanguy
883c7a50ad
Fix `expect` & nim 1.6 regressions ( #24 )
2023-02-17 15:23:16 +01:00
jangko
0e18d15d3e
reduce compiler warnings about cannot raise defect
2023-02-14 13:13:26 +07:00
jangko
828310e512
workaround for nim 1.2 backward compatibility: exception in terminal.nim
2023-02-14 11:13:53 +07:00
jangko
bed1d50a45
workaround for nim devel in ci
2023-02-14 10:32:06 +07:00
Tanguy
fe3650ceea
fix for 1.6
2023-02-10 11:13:45 +01:00
Tanguy
c445f0e489
cleaner
2023-01-04 15:49:22 +01:00
Tanguy
fa59d48f2c
Fix warnings
2023-01-04 15:48:30 +01:00
diegomrsantos
297711ddaa
Fix compilation on devel ( #19 )
2022-11-07 14:27:25 +01:00
Tanguy
f180f596c8
Fix for strict exceptions
2022-06-16 13:28:28 +02:00
Tanguy
26f31488a8
Add -d:unittestPrintTime to show test duration in console ( #12 )
...
* Add -d:unittestPrintTime to show test duration in console
* Add environment variable option NIMTEST_TIMING
* Bump version to 0.0.4
2022-05-31 17:12:44 +02:00
Jacek Sieka
f1d70dbb8c
better error message on unexpected exception ( #10 )
2021-08-17 15:45:12 +02:00
Jacek Sieka
4c2ce01e34
reorder code ( #9 )
...
declare checkpoint/fail before use to avoid random compile errors
2021-08-16 15:10:04 +02:00
Ștefan Talpalaru
91d4eaa4cc
Nim-1.4 fix ( #8 )
...
* Nim-1.4 fix
* CI: use MSYS2
2021-05-22 18:00:55 +02:00
Ștefan Talpalaru
b9b61cfe4a
change define prefix and update docs ( #7 )
2021-04-29 14:20:03 +02:00
Jacek Sieka
60855d9432
add option to disable command line parsing
2021-04-28 10:19:23 +02:00
Jacek Sieka
133d86a58e
compat fixes
...
evaluate name once only
2021-04-27 20:29:59 +02:00
Jacek Sieka
0bff52a779
fix time, run test in block
2021-04-27 17:41:56 +02:00
Jacek Sieka
d070a24fd0
write junit test reports as a command line option
...
* add counters to xml reports
* add command line args to write xml report
* fix initialization being performed once for each test
* use monotonic timer for duration measurements
2021-04-27 16:34:39 +02:00
Ștefan Talpalaru
72a6ae5ce6
fix stand-alone "check" for <Nim-1.4.0
...
and prevent a theoretical integer overflow
2021-03-22 20:01:37 +01:00
Ștefan Talpalaru
50c3aff5be
CI setup
...
Tests moved to "config.nims", to avoid building and using Nimble.
fix for >=Nim-1.4.0
Nim devel fix
macOS fix
fix Windows (uninitialised locks)
2021-03-19 23:22:19 +01:00
Jacek Sieka
4241a66ff4
updates ( #2 )
...
* update to latest upstream
* fix exception tracking
* update readme
2021-03-19 18:27:25 +01:00
narimiran
13607032e9
proc `!` was deprecated since Nim 0.18, and it doesn't exist in Nim 1.4
2020-09-08 14:40:45 +02:00
Ștefan Talpalaru
183eaaa577
remove redundant import
2019-07-03 01:05:07 +02:00
Ștefan Talpalaru
30c7d332d8
-d:nimtestParallelDisabled
2019-05-29 16:33:25 +02:00
Ștefan Talpalaru
37d4ee81df
mark runTest() as "fastcall"
...
to get proper error messages about variable access that would make it a
closure - which we can't have in a spawned proc. "nimcall" doesn't work
here, because of https://github.com/nim-lang/Nim/issues/8473
2019-05-29 12:49:33 +02:00
Ștefan Talpalaru
65f6fb7ef2
inject testName
2019-05-29 01:49:35 +02:00
Ștefan Talpalaru
9434b711c6
pass the test name to runTest()
...
so it can be deep-copied when spawned
2019-05-29 00:34:09 +02:00
Ștefan Talpalaru
d01ed926d7
add suiteTeardown() template
2019-05-28 23:58:13 +02:00
Ștefan Talpalaru
b8ab4657e4
remove obsolete comment
2019-05-28 22:54:50 +02:00
Ștefan Talpalaru
c8297e6f69
change a couple of threadvars into global vars
2019-05-28 21:41:04 +02:00
Ștefan Talpalaru
ae4d471d38
initial commit - from https://github.com/nim-lang/Nim/pull/9724
2019-05-19 23:11:17 +02:00