Skip to content
This repository has been archived by the owner on Jul 29, 2018. It is now read-only.

Refactor unit tests to use configuration based static test data #370

Open
brgnepal opened this issue Aug 10, 2016 · 0 comments
Open

Refactor unit tests to use configuration based static test data #370

brgnepal opened this issue Aug 10, 2016 · 0 comments
Milestone

Comments

@brgnepal
Copy link
Contributor

Hi,

Most of the unit tests are using test data which are repeated quite often. Mostly there are repeated per test file.
One approach would be to use locale based data, where each test data can be arranged and used.

Example

# yaml
test_feature1:
   url: service_url
   version: default_test_version

# can be used in test file repeatedly as
I18n.t('test_feature1.url') 
I18n.t('test_feature1.version') 

Any other suggestion are also welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants