Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

TST: Make tests go 7X faster by using module fixtures. #60

Merged
merged 3 commits into from Jul 24, 2019

Conversation

danielballan
Copy link
Member

Locally, pytest runs all the tests in 103s, down from 773s on master.

Using function-scoped fixtures gives better isolation between tests.
I believe that function-scope isolation is important for testing
data writing (i.e. suitcase) but taht module-scope isolation is
sufficient for reading.

Four tests fail due to a bad interaction related to filling in place.
Those of course need to be fixed before this should be merged.

Using function-scoped fixtures gives better isolation between tests.
I believe that function-scope isolation is important for testing
data *writing* (i.e. suitcase) but taht module-scope isolation is
sufficient for reading.
@danielballan danielballan reopened this Jul 8, 2019
@danielballan

This comment has been minimized.

@danielballan danielballan changed the title WIP: Make tests go 7X faster by using module fixtures. TST: Make tests go 7X faster by using module fixtures. Jul 8, 2019
@danielballan danielballan merged commit 75845ef into bluesky:master Jul 24, 2019
@danielballan danielballan deleted the faster-tests branch July 24, 2019 14:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant