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

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

Description

@brgnepal

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions