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

Faster unit-tests by using beforeAll/afterAll in api_spec.js #7133

Merged
merged 1 commit into from
Mar 30, 2016
Merged

Faster unit-tests by using beforeAll/afterAll in api_spec.js #7133

merged 1 commit into from
Mar 30, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

In the API unit-tests, we're currently loading the basicapi.pdf before every sub-test in PDFDocument and Page, which slows down the unit-tests quite a bit.
Locally this patch reduces the run time for gulp unittest by at least 40% for me.

In the API unit-tests, we're currently loading the `basicapi.pdf` before every sub-test in `PDFDocument` and `Page`, which slows down the unit-tests quite a bit.
Locally this patch reduces the run time for `gulp unittest` by at least 40% for me.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.22.172.223:8877/095bd6bf6f77305/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_unittest from @Snuffleupagus received. Current queue size: 0

Live output at: http://107.21.233.14:8877/eee035d932f8138/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/eee035d932f8138/output.txt

Total script time: 1.48 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/095bd6bf6f77305/output.txt

Total script time: 1.84 mins

  • Unit Tests: Passed

@yurydelendik yurydelendik merged commit 447c48e into mozilla:master Mar 30, 2016
@yurydelendik
Copy link
Contributor

Thank you for the patch.

@Snuffleupagus Snuffleupagus deleted the faster-unittests-beforeAll-afterAll branch March 30, 2016 14:32
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