Skip to content

WiP: More complicated fixture creation#2985

Open
GeoWill wants to merge 7 commits into
DemocracyClub:masterfrom
GeoWill:more-complicated-fixture-creation
Open

WiP: More complicated fixture creation#2985
GeoWill wants to merge 7 commits into
DemocracyClub:masterfrom
GeoWill:more-complicated-fixture-creation

Conversation

@GeoWill

@GeoWill GeoWill commented Jan 26, 2021

Copy link
Copy Markdown
Collaborator

A home for work started in #2968

This is an initial scoping out of whether using factories to produce our
test data is easier to maintain and introduce better coverage.
Really just an exercise to get a feel for writing tests with factories
but always good to make coverage happier.
The aim of this class is to make it easier to define, maintain and
reason about the multiple ways a postcode can exist in the db that we
want to test for. The aim is that, combined with various factory classes
that it depends on, it should replace a lot of the json fixtures which
can become unwieldly to read and alter. This should also make it easier
to understand what the tests are meant to be testing.
This is mainly to get a feel for/dmeonstrate the ergonomics of writing
tests like this.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 73.182% when pulling aaf46e2 on GeoWill:more-complicated-fixture-creation into f6cb041 on DemocracyClub:master.

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