Skip to content

Unit test speed improvements - #6111

Merged
jzoldak merged 2 commits into
masterfrom
zoldak/modulestore-test-config
Dec 12, 2014
Merged

Unit test speed improvements#6111
jzoldak merged 2 commits into
masterfrom
zoldak/modulestore-test-config

Conversation

@jzoldak

@jzoldak jzoldak commented Dec 2, 2014

Copy link
Copy Markdown
Contributor

This should always be overridden by the testcases if needed.

@jzoldak
jzoldak force-pushed the zoldak/modulestore-test-config branch from 92b4368 to 177fdbe Compare December 3, 2014 16:51
@jzoldak jzoldak changed the title Change the default dir for loading xml files. Unit test speed improvements Dec 5, 2014
@jzoldak
jzoldak force-pushed the zoldak/modulestore-test-config branch 2 times, most recently from d27ea1b to a69215f Compare December 9, 2014 19:58
Jesse Zoldak added 2 commits December 10, 2014 11:18
@jzoldak
jzoldak force-pushed the zoldak/modulestore-test-config branch from a69215f to 77bbd30 Compare December 10, 2014 16:18
@jzoldak

jzoldak commented Dec 11, 2014

Copy link
Copy Markdown
Contributor Author

@clytwynec or @benpatterson please review
This saved > 7 minutes on devstack when I did date; paver test_system; date

Wed Dec 10 17:02:43 UTC 2014
Wed Dec 10 17:24:08 UTC 2014
before this change: 21:25 elapsed time

Wed Dec 10 16:20:07 UTC 2014
Wed Dec 10 16:33:47 UTC 2014
after this change: 13:40 elapsed time

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Not a must: should these cleanup tasks also go in a tearDown method? (Or, be moved entirely to a tearDown method if state is clean enough for the first test?)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No need. addCleanup replaces putting stuff in the tearDown.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Got it.

@benpatterson

Copy link
Copy Markdown
Contributor

I had a question but changes LGTM 👍

jzoldak pushed a commit that referenced this pull request Dec 12, 2014
@jzoldak
jzoldak merged commit b999714 into master Dec 12, 2014
@jzoldak
jzoldak deleted the zoldak/modulestore-test-config branch December 12, 2014 15:53
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