test(parsers): Add tests for js and Python parsers#4878
Conversation
|
I believe with the current Github Actions config, these will wind up running every time, when most of our language parsers run tests only in the longtest job. I've kicked off the tests to actually run so we can get some time data before we decide the best path: it probably makes conceptual better sense to group them with the other parser tests, but if they're fast enough maybe running them for every version of python would be fine. |
Hey! @terriko, |
terriko
left a comment
There was a problem hiding this comment.
Doesn't look like any of these made it into the top 50 slowest tests according to the logs I looked at (I admit, I didn't look at every single version of python). So I think we'll leave them as is rather than shunting them off with the slower tests.
Thanks for working on this; let's get it merged!
Description:
Fixes #4874
This PR improves test coverage for
JavascriptandPythonparsersChanges:
process_yarn_lock(yarn.lock regex parsing).process_package_lock_lockfile_v2(package-lock.json v2 parsing).run_checkerinPythonRequirementsParserfor subprocess errors.run_checkerinPythonParserfor invalidMETADATA/PKG-INFOhandling.Testing:
pytest.