You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some fixtures contain countries that have a characteristic that is useful to use in tests, but that is already on a country from another fixture. We have repetition that can lead to having the entire EP-data as fixtures for tests.
For example, Australia and the US both have two legislatures. But if we already have fixtures for Australia and we want a test that requires a country with two legislatures, we shouldn't have to add new fixtures for the US.
Proposed Solution
Make a list of countries with their useful characteristics that we can use for tests and keep it in an easily accessible place.
Example of such list:
- use Narnia for testing that the country contains at least one White Witch
- use Flatland for testing legislatures were all politicians are pentagonal
This may also help reduce the number of fixtures if we figure out that we have some countries that fulfil both having one White Witch and a legislature with pentagonal politicians.
Acceptance Criteria
We know which country to use to test a specific feature so that we don't load new fixtures.
The text was updated successfully, but these errors were encountered:
Problem
Some fixtures contain countries that have a characteristic that is useful to use in tests, but that is already on a country from another fixture. We have repetition that can lead to having the entire EP-data as fixtures for tests.
For example, Australia and the US both have two legislatures. But if we already have fixtures for Australia and we want a test that requires a country with two legislatures, we shouldn't have to add new fixtures for the US.
Proposed Solution
Make a list of countries with their useful characteristics that we can use for tests and keep it in an easily accessible place.
Example of such list:
This may also help reduce the number of fixtures if we figure out that we have some countries that fulfil both having one White Witch and a legislature with pentagonal politicians.
Acceptance Criteria
We know which country to use to test a specific feature so that we don't load new fixtures.
The text was updated successfully, but these errors were encountered: