Commit graph

92 commits

Author SHA1 Message Date
Miran
f3117d350e
fix #6736: templates in unittest now show actual value (#13354) 2020-02-07 22:04:08 +01:00
cooldome
84e8477b90
unittest add resetOutputFormatters proc (#13267)
* add resetOutputFormatters

* remove space

* resolve comments
2020-01-28 14:16:03 +00:00
ducdetronquito
df4c339cfc Namespace unittest enums to avoid name conflicts (#12468) [backport]
* [backport] Fixes: #12465 - Unittest - Namespace the usage of TestStatus enum to avoid name conflicts.
2019-10-20 08:12:02 +02:00
narimiran
5732bb41ef [backport] run nimpretty on the remaining files 2019-09-30 13:58:17 +02:00
Federico Ceratto
39290cf88c Fix spellings (#12277) [backport] 2019-09-27 07:02:54 +02:00
Araq
5abe880469 last stdlib cleanups 2019-09-21 06:43:37 +02:00
Chris Heller
35f1519ad6 Add delOutputFormatter proc to unittest.nim (#12032) 2019-09-03 08:14:19 +01:00
Dmitry Matveyev
756fabb979 Fix typo (#11910) 2019-08-08 13:17:53 +02:00
Kaushal Modi
404b224945 [bugfix] Make std/unittest compile with --styleCheck:error (#11762) 2019-07-17 19:47:50 +02:00
Araq
64518380a5 undeprecate system.programResult until we have a good solution at hand 2019-06-03 09:35:04 +02:00
Andreas Rumpf
e1515b53d1
introduce temporary <//> for 'owned' to get this compile with 0.19 (#11145)
* introduce temporary <//> for 'owned' to get this compile with 0.19
* make newTable[string, owned Node]() compile (but it crashes)
* make sink/owned parameters consistent
* make actiontable test compile again
* VM: support sytem.move; makes tests green
2019-05-02 08:07:09 +02:00
Zed
3b4952da94 Fix header inconsistencies in documentation (#11071) 2019-04-23 08:40:20 +02:00
Timothee Cour
540d102d87 fix #10261 unittest now returns 1 on error instead of buggy behavior (#10264) 2019-01-11 07:59:20 +01:00
Neelesh Chandola
a3c4791e9c Give error when case has an else branch even though all cases are already covered (#9930)
* Give error when case has an else branch even though all cases are already covered.
* Don't check for invalid else for type tyFloat..tyFloat128, tyString, tyError
* Remove unnecessary else in unittest.nim
* Fix sockets.nim
2018-12-13 09:08:10 +01:00
Araq
3f6168b337 removes deprecated T/P types 2018-11-16 13:27:56 +01:00
Andreas Rumpf
7f49364fd0 make more tests green 2018-08-13 12:29:03 +02:00
Andreas Rumpf
dae5450947 WIP: disallow 'nil' for strings and seqs 2018-08-13 11:41:33 +02:00
Timothee Cour
8ad59e6857 remove redundant test for nil before add (#8460) 2018-08-06 11:50:42 +02:00
七秒不觉梦
b6b6382e0b Added: type name output when exception raised from unittest (#7869) 2018-05-28 05:24:04 +03:00
Xiao-Yong
f543388959 unittest: default no color if stdout is not a tty (#7424)
We accept a new environment variable, NIMTEST_COLOR,
which override the effect of NIMTEST_NO_COLOR.
The environment variable, NIMTEST_COLOR, can be 'never'
or 'always', which set the color output to false or true,
respectively.
2018-04-12 17:57:34 +02:00
Alexander Ivanov
53088c05cb Disable param filtering 2018-03-27 19:23:08 +03:00
Federico Ceratto
25831a83d7 Add unittest suite/test name filters
Support simple globbing
2017-11-28 13:12:23 +00:00
Emery Hemingway
2ca7b703fb No implicit quit for Genode (#6515) 2017-10-25 13:50:55 +02:00
GULPF
5cf789ac3f Improved unittest check macro, fixes #5784 (#6446) 2017-09-30 15:39:00 +02:00
Dominik Picheta
838be26f53 Implement ability to run a single test using unittest module. 2017-08-12 14:41:33 +01:00
Ruslan Mustakov
310b73b556 Reduce the scope of stackTrace var (#5583)
Fixes #5571.
2017-03-22 01:06:05 +01:00
Araq
d365f1a81a resolved unittest conflict 2017-03-18 20:59:10 +01:00
Araq
aa4260ffa8 overloading resolution for getAst; breaking change 2017-03-18 20:57:45 +01:00
Ruslan Mustakov
65422487f3 Add support for custom test report formatters (#5556)
Implement ConsoleOutputFormatter that is backward compatible
with the previous implementation.
Implement JUnitOutputFormatter which can be added externally.
2017-03-18 20:48:30 +01:00
Andreas Rumpf
5d125ca716 Merge branch 'devel' into faster-nimsuggest 2017-03-03 13:00:09 +01:00
Araq
3d46600a90 nimsuggest supports prefix matching (first version) 2017-02-28 09:03:40 +01:00
Federico Ceratto
a49d88f18a Add comment on return value 2017-02-26 14:34:08 +00:00
Fabian Keller
f250c30b9d Make use of used in unittest (#5410) 2017-02-25 21:18:16 +01:00
Ivan Koster
8ebc869773 Remove unnecessary colon in unittest.nim code example 2017-02-24 15:43:31 +01:00
Dmitry Polienko
c62c38ca46 Use default colors for test and suite names 2016-11-15 13:43:39 +07:00
Federico Ceratto
767e0846c1 Improve unittest docs 2016-10-23 16:13:38 +01:00
Felix Krause
7e342ec4a1 unittest: Output suite name, nice formatting 2016-08-23 19:23:58 +02:00
Andreas Rumpf
60b187513e stdlib and compiler don't use .immediate anymore 2016-07-29 23:51:01 +02:00
Andreas Rumpf
fc0bb82802 fixes #4494 2016-07-22 22:31:09 +02:00
Rostyslav Dzinko
d91b0cbc2b Implemented SKIPPED test status 2016-06-03 12:02:38 +03:00
Andreas Rumpf
95bb19a579 moved random procs from math to its own module (breaking change) 2016-05-30 16:24:52 +02:00
Araq
13a83c7fdd Windows: fixes a regression; codegen might not know about & at this point 2016-03-29 16:39:05 +02:00
Rostyslav Dzinko
e02e8968c4 Moved teardown call to try block for namespace access reasons 2015-09-17 13:11:51 +03:00
fenekku
c62698b296 make testSetupIMPL and testTeardownIMPL non-public 2015-08-12 10:30:36 -04:00
fenekku
58b8381501 failed unittest check causes identifiers and calls to be printed out 2015-08-12 08:26:40 -04:00
Nycto
eac484167c Fix multiple requires in a test 2015-08-01 18:48:41 -07:00
Dominik Picheta
1b9f2fdfe8 Merge pull request #3094 from fenekku/unittest-work
document unittest.nim + code agreement
2015-07-26 21:42:51 +01:00
Sergey Avseyev
70f14aa578
Remove access modifiers from inner templates
Fixes options.nim tests
2015-07-23 17:00:04 +03:00
fenekku
464ec61e9c document unittest.nim + code agreement 2015-07-09 13:22:26 -04:00
yglukhov
98ec9615f3 Fixed unittest output. 2015-06-11 23:01:44 +03:00