doc: Change test option at STEP 5: Test in CONTRIBUTING.md#12830
doc: Change test option at STEP 5: Test in CONTRIBUTING.md#12830kysnm wants to merge 7 commits intonodejs:masterfrom
Conversation
CONTRIBUTING.md
Outdated
| You can run tests in parallel with option `-J` | ||
|
|
||
| ```text | ||
| $ python tools/test.py -J --mode=release parallel |
There was a problem hiding this comment.
There is make test-parallel for this so I wouldn't add it.
There was a problem hiding this comment.
Thank you for reviewing.
I will remove this.
vsemozhetbyt
left a comment
There was a problem hiding this comment.
LGTM with a nit: line 191 is 81 characters long, and this may break approaching doc linting. Could you please wrap this line, say, before the last word?
|
I fix it. Do I have to squash this branch? |
CONTRIBUTING.md
Outdated
| $ python tools/test.py --mode=release parallel/test-stream2-transform | ||
| ``` | ||
|
|
||
| If you want to check the other option, please refer the help with option |
There was a problem hiding this comment.
Nit: take this with a grain of salt as I'm not a native speaker but maybe it better to use "the other options, please refer to the help with the option".
|
Thank you! I may squash if it is not difficult. Or this may be squashed before landing by somebody else. |
|
@vsemozhetbyt |
|
@kysnm I think the last commit removed more words than it had to :) |
|
@lpinca |
|
Yes, thank you! |
|
Thank you for your reviewing. |
CONTRIBUTING.md
Outdated
| $ python tools/test.py --mode=release parallel/test-stream2-transform | ||
| ``` | ||
|
|
||
| If you want to check the other option, please refer to the help with the option |
There was a problem hiding this comment.
Also, can you please avoid using personal pronouns like "you"?
EDIT: on the other hand, that's how this document is already written, and such wording is common in it.
CONTRIBUTING.md
Outdated
| ``` | ||
|
|
||
| If you want to check the other option, please refer to the help with the option | ||
| `--help` |
There was a problem hiding this comment.
Unnecessary space at the beginning of the line.
|
Fixed |
CONTRIBUTING.md
Outdated
|
|
||
| ```text | ||
| $ python tools/test.py -v --mode=release parallel/test-stream2-transform | ||
| $ python tools/test.py --mode=release parallel/test-stream2-transform |
There was a problem hiding this comment.
Can we add a -J? Given that it says "exactly as the test harness would" we should probably be exact:
-$ python tools/test.py --mode=release parallel/test-stream2-transform
+$ python tools/test.py -J --mode=release parallel/test-stream2-transformLGTM otherwise.
There was a problem hiding this comment.
I think it would be run "exactly as the test harness would" either way given that tools/test.py is the test harness, regardless of the options.
There was a problem hiding this comment.
I think that users would understand by looking at help.
There was a problem hiding this comment.
I think it would be run "exactly as the test harness would" either way given that
tools/test.pyis the test harness, regardless of the options.
I assume the test harness means make test, otherwise that part of the sentence is kinda meaningless. The reason I think this is necessary is that using -J can cause subtle bugs (when tests interact with each other), and that is impossible to debug if you don't use the flag by default.
There was a problem hiding this comment.
The reason I think this is necessary is that using -J can cause subtle bugs (when tests interact with each other)
Yeah, I agree with that if we are talking about running multiple tests. But that sentence is about running a single test, isn't it? Do I miss the point?
There was a problem hiding this comment.
Wouldn't a PR changing -J to default (with -j1 as the opt-out) make sense?
Maaaybe, I think I'd be +1 on that, but I suspect it might be contentious...
There was a problem hiding this comment.
Other option, a wrapper script test-ci (.sh & .cmd).
This one I'm doing
There was a problem hiding this comment.
Other option, a wrapper script test-ci (.sh & .cmd).
Doesn't that duplicate the Makefile and vcbuild.bat test-ci target? What's the gain?
There was a problem hiding this comment.
It'll take $*, so it's useful for single files, or single suits.
I don't know about make test-ci but vcbuild test-ci builds first (with Feet of clay), very demotivating.
CONTRIBUTING.md
Outdated
| If you want to check the other option, please refer to the help with the option | ||
| `--help` | ||
| If you want to check the other options, please refer to the help with the | ||
| option `--help` |
There was a problem hiding this comment.
Nit: please refer to the help with the option `--help` => please refer to the documentation by using the `--help` option
There was a problem hiding this comment.
I think the word documentation gives the users impression that they should see the https://nodejs.org/en/docs/
There was a problem hiding this comment.
Several options
please refer to the built in documentation by using the `--help` optionplease refer to the help by using the `--help` optionplease refer to the help by passing the `--help` flag
There was a problem hiding this comment.
Thank you for suggestions
I will change to the No.2
|
Is there anything i should fix the patch, yet? |
|
I'd still like the -$ python tools/test.py --mode=release parallel/test-stream2-transform
+$ python tools/test.py -J --mode=release parallel/test-stream2-transform |
|
Added the option |
|
@aqrln |
|
Thanks for all reviewers. |
PR-URL: nodejs#12830 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
|
Landed in d7d16f7 |
PR-URL: nodejs#12830 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
PR-URL: #12830 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
PR-URL: #12830 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Refs #12771
Checklist
Affected core subsystem(s)
none