七秒不觉梦
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
yglukhov
c5f7d553e9
Perform lambda lifting for compile-time stuff when targeting JS. Enable unittest test.
2015-05-29 10:48:14 +03:00
Flaviu Tamas
c9616897f0
Don't inspect typedescs
2015-05-26 18:40:43 -04:00
def
fd4e629905
Rename PNimrodNode to NimNode
2015-03-17 17:50:32 +01:00
def
416456cefe
Try to fix unittest for JS backend, still not working
2015-02-04 21:44:25 +01:00
Flaviu Tamas
d24fb3d0b9
Fix named argument handling
...
Instead of trying to use the whole parameter, it uses just the RHS, as expected
2015-01-16 19:01:33 -05:00
Andreas Rumpf
e386b7460b
Merge pull request #1876 from flaviut/unittest-stacktrace
...
Add stack trace to unitest.nim exceptions
2015-01-07 14:15:11 +01:00
Varriount
2a7b9c64a3
Merge pull request #1883 from flaviut/add-unittest-docs
...
Add an example and remove future claims from unittest.nim
2015-01-05 23:01:56 -05:00
Flaviu Tamas
8f446eb541
Properly use the terminal module
...
The documentation for terminal says
> Changing the style is permanent even after program termination! Use the code
> `system.addQuitProc(resetAttributes)` to restore the defaults.
2015-01-05 21:54:06 -05:00
Flaviu Tamas
6a8d38f358
Add an example and remove future claims
...
The future claims haven't been addressed for 3 years, they are unlikely to be
fixed soon.
2015-01-05 21:44:35 -05:00
Flaviu Tamas
d99454314c
Make unittest.nim print stack trace
2015-01-05 18:59:59 -05:00
Araq
a0ad3aa183
work around a regression caused by the new 'echo' implementation
2014-12-28 22:24:29 +01:00
gmpreussner
0e65d786d5
Removed extra line breaks from unittest output.
2014-12-21 23:47:01 -05:00
Araq
ae548a696f
made some tests green
2014-08-31 12:34:35 +02:00
Araq
d05df2173b
Nimrod renamed to Nim
2014-08-28 09:50:51 +02:00
Araq
e12f9518cc
more modules updated
2014-08-28 01:54:36 +02:00
Araq
11b6958755
big rename
2014-08-27 23:42:51 +02:00
Araq
dd806cafa0
distinguish between 'defined' and 'declared'
2014-08-11 20:38:28 +02:00
Araq
5073914b86
unittest module works again
2014-01-18 00:58:59 +01:00