projectatomic / vagrant-service-manager

To provide the user a CLI to configure the ADB/CDK for different use cases and to provide glue between ADB/CDK and the user's developer environment.
GNU General Public License v2.0
18 stars 16 forks source link

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

Open coolbrg opened 8 years ago

coolbrg commented 8 years ago

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.