Skip to content

Make REPL completion tests faster#3234

Merged
kritzcreek merged 2 commits intopurescript:masterfrom
rndnoise:faster-repl-tests
Feb 17, 2018
Merged

Make REPL completion tests faster#3234
kritzcreek merged 2 commits intopurescript:masterfrom
rndnoise:faster-repl-tests

Conversation

@rndnoise
Copy link
Copy Markdown
Contributor

@rndnoise rndnoise commented Feb 2, 2018

Rather than rebuild the same code for each assertion, this builds the environment once and reuses it. The whole repl set of tests went from about 35s to 10s. Now about half of the remaining time is setup done by stack test and the other half is TestPsci (a similar optimization might be possible there, but it's less clear).

@kritzcreek
Copy link
Copy Markdown
Member

@hdgarrood Do you have time to look at this one or do you want me to?

Copy link
Copy Markdown
Member

@kritzcreek kritzcreek left a comment

Choose a reason for hiding this comment

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

Works great, thanks!

@kritzcreek kritzcreek merged commit 143f8f1 into purescript:master Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants