Commit graph

101 commits

Author SHA1 Message Date
Jacek Sieka
97738a4f28 Testament pre parallel (#9137)
* testament: move to root dir (it's not a test)

* osproc: fix process index passed to afterRunEvent for parallel runs

it was passing the index of the process, not index of all commands

* testament: complete file move
2018-10-12 17:27:47 +02:00
xzfc
8fc7cecfa2 compiler: show name of instantiating context in error traces (#6763) (#9207) 2018-10-11 09:34:56 +02:00
Araq
3d768738f8 testament: quote categories too because of 'dir with space' test 2018-09-26 11:31:17 +02:00
Timothee Cour
e05d0ea0bb tester.nim add more diagnostics (#8631) 2018-08-16 00:54:39 -04:00
Naveen Arunachalam
e839c01f5b Clarify usage of "Test" argument in Koch (#8613)
Minor change to help people (e.g. like myself) who are starting out :)
Currently, the readme mentions the use of `./koch tests cat async`, but
the help text for koch doesn't mention it. Helptexts are modified
accordingly.
2018-08-12 22:10:06 +02:00
genotrance
c115090f6e Testament should run tests with no action (#8232)
* Testament should run tests with no action

* Fix strutils tests for JS
2018-07-08 20:38:46 -04:00
Andreas Rumpf
dbcdc4331a testament: minor code formating change 2018-06-17 14:16:01 +02:00
Oscar Nihlgård
eb8f15d97c Support multi byte characters in module names (#7916) 2018-05-31 10:38:43 +03:00
Andreas Rumpf
700a2e125b make the tester compile without warnings 2018-05-06 09:00:55 +02:00
genotrance
e931f3b5a9 Fixes #802, #803 and #3775 - genscript issues (#7677)
* Fixes #802, #803 and #3775 - genscript issues

* Test case for genscript

* Test script

* Verify on Linux

* Update categories.nim

* Fix merge

* Improve test framework

* Windows fixes
2018-04-25 10:52:32 +02: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
Andreas Rumpf
3bf1ce008f fixes #7236 2018-02-26 10:51:56 +01:00
Mathias Stearn
6db1b492e1 Include target in tester nimcache hash (#7053) 2018-01-14 15:22:48 +01:00
Sergey Avseyev
3f2636c765 Remove obsolete method analyzeAndConsolidateOutput (#6998)
After the change, when stacktraces rendered in reversed order (most recent
call first), this method removed all stacktraces in the test failures.
2018-01-01 00:39:55 +01:00
Mathias Stearn
90345526ba Prep for tester parallel: private nimcache for each test (#6937)
* Compile tester with --opt:speed

This makes "tester html" substantially faster

* Use a private nimcache for each test

This allows reusing the cache between test runs. It is also prep for parallel
testing within a single category (#6913)
2017-12-18 10:10:52 +01:00
Dmitry Atamanov
1de3938008 Added test duration output (#6619) 2017-12-15 19:13:57 +01:00
Jacek Sieka
035f0fb023 pass nim path to subprocess testament (#6779) 2017-11-19 09:22:36 +01:00
Jacek Sieka
b122836acf use targets from test spec when running testament tests (#6687) 2017-11-15 22:37:51 +01:00
Andreas Rumpf
4dad120d47 fixes a tester regression 2017-11-06 20:32:06 +01:00
Jacek Sieka
11f6e626d7 pass on testament args to sub-process (#6688) 2017-11-06 09:37:21 +01:00
Araq
00898dae7a attempt to fix the tester; tests should be red now 2017-10-31 22:31:10 +01:00
Araq
fa02ffaeba made 'testament all' run in parallel 2017-10-25 17:37:03 +02:00
Araq
a5f1abc5ca testament: no sqlite or re dependencies anymore 2017-10-25 17:37:03 +02:00
Dominik Picheta
90fa64501f Implement .nimble-link files in the compiler and add tests for them. 2017-09-02 15:28:25 +01:00
Dominik Picheta
9b465a2361 Add readme to tests. Add fileDir option to testament & create nimble test. 2017-09-02 15:03:39 +01:00
Andreas Rumpf
686a9ae66a tester: better error message comparisons 2017-08-31 21:39:24 +02:00
Andreas Rumpf
4846e4e452 tester: make 'nimout' matching more robust against whitespace issues 2017-08-31 13:59:06 +02:00
zah
39aef12446 review and merge zahary's work (#5849)
* proper indentation for the generated JS code
* improved dead-code elimination for JavaScript
* test the JS dead-code elimination

A new test spec has been added - "maxcodesize". It specifies the
maximum size of the generated code in bytes.
2017-06-03 12:45:10 +02:00
Jacek Sieka
6bbf0fb64d compiler option for testament (#5713)
* compiler option for testament

* different spacing
2017-05-15 16:34:30 +02:00
Zahary Karadjov
fe48dd1cbe further improvements to the error messages produced by concepts 2017-03-24 16:59:47 +02:00
Zahary Karadjov
74a80988d9 proper error reporting for concepts and the introduction of the {.explain.} pragma 2017-03-24 16:59:47 +02:00
Andreas Rumpf
4ac6a26031 testament: be verbose when --pedantic fails 2017-02-03 10:29:08 +01:00
Araq
e236039d10 make tests on Windows green under --pedantic 2017-02-02 21:12:36 +01:00
Wh1teDuke
248b5c0468 Run Option: use now processSingleTest 2016-09-19 16:25:39 +02:00
Yuriy Glukhov
cafcf1308a Treat all failure codes from nodejs as 1 2016-08-27 20:25:36 +03:00
cheatfate
3291ccfe24 sets don't support empty arrays :) 2016-07-30 23:28:14 +03:00
cheatfate
70f80c98b9 Enable coroutines again. 2016-07-30 23:17:02 +03:00
cheatfate
85db7eb187 comments 2016-07-30 10:52:15 +03:00
cheatfate
0d2ff34d02 testament update to have list of disabled modules. 2016-07-30 02:07:05 +03:00
Andreas Rumpf
76c8d6164b added 'koch testinstall' command; more installer related bugfixes 2016-06-09 17:34:57 +02:00
Andreas Rumpf
9a747828fe Merge pull request #4049 from arnetheduck/tester-targets
tester: allow filtering tests by target
2016-04-07 13:34:01 +02:00
Dominik Picheta
082ba914bc Prevent tester from checking for output diffs for actionRunNoSpec. 2016-04-05 21:45:52 +01:00
Jacek Sieka
796f4e917c untaint command line option for parsing 2016-04-06 00:01:57 +08:00
Jacek Sieka
25abb7c2b6 tester: allow filtering tests by target 2016-04-05 20:51:13 +08:00
Adam Strzelecki
abb82554b7 compiler/msgs: Default to stderr for diagnostics
Previously we were defaulting to stdout for diagnostics, which could interfere
with scripts or `nim c -r' programs outputting their results to stdout,
possibly mixing their output with compiler messages.

This change makes now Nim to be inline with other compilers emitting
diagnostics to stderr. Also now --stdout option has proper meaning making all
diagnostics to be sent to stdout instead.

NOTE: Tester now calls compiler with --stdout.
2015-10-16 20:55:17 +02:00
Aman Gupta
e2dbf222e6 Merge remote-tracking branch 'origin/devel' into appveyor 2015-10-13 15:25:40 -07:00
Araq
8be9e46403 udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
Aman Gupta
a1750bd431 skip sdl/opengl/fsmonitor tests when unavailable 2015-10-08 10:58:52 -07:00
Aman Gupta
5bb0820596 show failure code 2015-10-08 10:58:37 -07:00
Aman Gupta
cadef43786 standardize on forward slashes for paths 2015-10-07 21:42:12 -07:00