Skip to content
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

Enables some unit tests on travis. #7939

Merged
merged 1 commit into from
Jan 9, 2017

Conversation

yurydelendik
Copy link
Contributor

Implements idea from #7179 about reusing the same tests and run portion of them on Travis CI via node.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to be able to run unit-tests on Travis too!
Looks good to me; with one question below.

If I understand correctly, the only unit-tests that we (currently) cannot run on Travis are ones that load various files themselves (e.g. PDFs, CMAPs, etc.).
However, since it seems like a good idea to run as many of the unit-tests on as possible: Should we also add the metadata_spec.js, ui_utils_spec.js and util_spec.js tests to the test/unit/clitests.json manifest file?

@yurydelendik
Copy link
Contributor Author

Should we also add the metadata_spec.js, ui_utils_spec.js and util_spec.js tests to the test/unit/clitests.json manifest file?

I missed util_spec.js by accident. metadata_spec.js and ui_utils_spec.js (as well as cmap, annotation_layer and api) require DOM objects such as XMLHttpRequest or document.

{
"spec_dir": "test/unit",
"spec_files": [
"cff_parser_spec.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this line and the ones below are indented with three spaces instead of two.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@timvandermeij timvandermeij merged commit e259bc2 into mozilla:master Jan 9, 2017
@timvandermeij
Copy link
Contributor

Awesome, thanks!

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants