-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5186 set up JavaScript test infrastructure #5207
Conversation
move templating from `doctools` to `documentation_options`
and add first karma test
5bfee3f
to
2fa3826
Compare
Codecov Report
@@ Coverage Diff @@
## master #5207 +/- ##
==========================================
+ Coverage 82.32% 82.34% +0.01%
==========================================
Files 297 297
Lines 39333 39446 +113
Branches 6051 6068 +17
==========================================
+ Hits 32380 32480 +100
- Misses 5618 5635 +17
+ Partials 1335 1331 -4
Continue to review full report at Codecov.
|
0d0bdb7
to
5ed3f0a
Compare
@tk0miya Can you give feedback? If this PR goes into the right direction, I can continue adding tests. |
It seems there are no test runners for |
The default Node.js build script is |
Please read the log for node_js job. We've already overrided it by travis.yml. So default setting is not used. I think you need to call manually like this:
I know |
9e8db5f
to
fcd0b78
Compare
Sorry for missing this. Now it works. If you think it's okay to merge, we could do so and I'll add new PRs with more tests every now and then. |
and fix test description of `urldecode()`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Let's merge this :-)
package-lock.json
Outdated
"inflight": "1.0.6", | ||
"inherits": "2.0.3", | ||
"minimatch": "3.0.4", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recieved security alert from github.
We found a potential security vulnerability in a repository for which you have been granted security alert access.
Known moderate severity security vulnerability detected in hoek < 4.2.1defined in package-lock.json.
package-lock.json update suggested: hoek ~> 4.2.1.
@TimKam Could you check this please? I don't know about this library so much. But it seems too old.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a problem with dependencies of karma.js, the test runner, see: karma-runner/karma#2994. It is not possible to update the dependency in the test setup. However, I am confident the vulnerabilities cannot be exploited in our usage scenario, as the libraries are not used in a security-critical context. I suggest it is okay to wait for Karma to update the dependencies and to up our Karma version subsequently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for explanation. I understand. And I agree with you.
Okay, let's keep as is :-)
The file was renamed in sphinx-doc/sphinx#5207
Subject: Set up JavaScript test infrastructure
Feature or Bugfix
Purpose
It would be good to have tests for Sphinx's JavaScript code. The goal of this PR is to set up the necessary infrastructure for this. Later, we can gradually increase test coverage.
Detail
Notes
package-lock.json
should in fact be committed, see: npm documentationRelates