-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Testing the doctool #5955
Comments
Yeah, I am 100% +1 on this and started discussion here also nodejs/docs#93 |
I wouldn't go all out with selenium and similar browser-based tools. Just some very basic validation with lightweight tools that can live inside the repo. |
Yeah for this purpose here I agree. Maybe it's enough in general. At the time of opening the issue I didn't think that simple. |
Also +1 on this. I just made another PR #5966 about doc. Testing the doctool would surely help a lot to prevent bugs in future. |
Hey, I'd like to take a look at this. |
@silverwind I just opened PR #6031 to address this issue. |
Addresses nodejs#5955 on GitHub. Test the toHTML function in html.js. Check that given valid markdown it produces the expected html. One test case will prevent regressions of big nodejs#5873.
Addresses nodejs#5955 on GitHub. Check that when given valid markdown it produced valid JSON with the expected schema.
Addresses nodejs#5955. Add a build target called `make test-doc` as suggested in the issue.
Addresses nodejs#5955 on GitHub. * Test the toHTML function in html.js. Check that given valid markdown it produces the expected html. One test case will prevent regressions of big nodejs#5873. * Check that when given valid markdown toJSON produces valid JSON with the expected schema. * Add doctool to the list of built in tests so it runs in CI.
* Test the toHTML function in html.js. Check that given valid markdown it produces the expected html. One test case will prevent regressions of #5873. * Check that when given valid markdown toJSON produces valid JSON with the expected schema. * Add doctool to the list of built in tests so it runs in CI. PR-URL: #6031 Fixes: #5955 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com>
Just so ya'll know this totally caught some breakages today!!! 🎉 |
* Test the toHTML function in html.js. Check that given valid markdown it produces the expected html. One test case will prevent regressions of #5873. * Check that when given valid markdown toJSON produces valid JSON with the expected schema. * Add doctool to the list of built in tests so it runs in CI. PR-URL: #6031 Fixes: #5955 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com>
* Test the toHTML function in html.js. Check that given valid markdown it produces the expected html. One test case will prevent regressions of #5873. * Check that when given valid markdown toJSON produces valid JSON with the expected schema. * Add doctool to the list of built in tests so it runs in CI. PR-URL: #6031 Fixes: #5955 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com>
* Test the toHTML function in html.js. Check that given valid markdown it produces the expected html. One test case will prevent regressions of #5873. * Check that when given valid markdown toJSON produces valid JSON with the expected schema. * Add doctool to the list of built in tests so it runs in CI. PR-URL: #6031 Fixes: #5955 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Rich Trott <rtrott@gmail.com>
Both the JSON and HTML output of the doctool are currently untested while tests could have prevented these recent issues:
As a start, a test could include JSON.parse and possibly some lightweight HTML validation triggered by
make test-doc
/vcbuild test-doc
.The text was updated successfully, but these errors were encountered: