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
Zahary Karadjov
de3b7cd413
progress towards adding negative type classes
...
[unittest bugfixes]
the block form of check now allows comments
errors when inspecting the arguments of var-accepting procs
2013-12-09 00:09:03 +02:00
Zahary Karadjov
1e26047c3b
adding some provisions for writing lower-level unit tests targeting specific sub-systems of the compiler
...
see sigmatch as an example.
tests are compiled only when the compiler is compiled with -d:selftest
to execute them, just run the resulting binary without arguments
2013-12-07 20:30:44 +02:00
Simon Hafner
71ade195d1
WA for #329 , caused by #335
2013-02-15 20:40:07 -06:00
Simon Hafner
260ddd735a
on the path to get unittest running from JS
2013-02-15 20:32:32 -06:00
Zahary Karadjov
d9d82fb0af
syntax compatibility between do blocks and stmt blocks
...
See the section `do notation` in the manual for more info.
* nkMacroStmt has been removed
Macro statements are now mapped to regular nkCall nodes.
The support for additional clauses (such as else, except, of, etc)
have been restored - they will now appear as additional arguments
for the nkCall node (as nkElse, nkExcept, etc nodes)
* fixed some regressions in the `is` operator and semCompiles
2012-10-04 15:37:26 +03:00
Zahary Karadjov
b6f8ab3254
[unittest] even deeper inspection of expressions and variables for the check macro
2012-09-14 00:53:30 +03:00
Zahary Karadjov
36155a6813
[unittest] the check macro will print the values of params involved in failed proc calls
2012-09-13 04:10:08 +03:00
Araq
8178cd4fab
made some tests green
2012-09-12 08:43:24 +02:00
Araq
46f652b93e
unittest bugfix; made some tests green
2012-09-08 22:33:15 +02:00