Conversation
|
I support this PR because of users convenience. |
|
@ryoichi-obara Yes, the discussion has been finished. Currently, it is under review in this pull request. |
| ├── test-node.js | ||
| ├── test-node.html | ||
| ├── package.json | ||
| └── test |
There was a problem hiding this comment.
I must admit we don't currently do this for most nodes - This is sensible.
(If this is done correctly can we then add a line to run the test via npm in the package.json? or does that then require we have all the deps in every node (inc node-red...?))
There was a problem hiding this comment.
There is a general discussion over whether a module should include its test material when published to npm. In the wider node community it is a similar discussion to tabs vs spaces - ie, no clear winner and a lot of energy spent not coming to agreement.
docs/creating-nodes/testing.md
Outdated
There was a problem hiding this comment.
Istanbul is deprecated so we shouldn't included it here. (see https://www.npmjs.com/package/istanbul)
We have a general task to migrate the whole project over to something else, probably nyc.
| ├── test-node.js | ||
| ├── test-node.html | ||
| ├── package.json | ||
| └── test |
There was a problem hiding this comment.
There is a general discussion over whether a module should include its test material when published to npm. In the wider node community it is a similar discussion to tabs vs spaces - ie, no clear winner and a lot of energy spent not coming to agreement.
I added testing guideline page which we discussed on the following wiki page.
If there is a suggestion about the contents, please add the comments.