chutney-testing / chutney-legacy

An opinionated test application to help you practice Specification by Example

Home Page:https://www.chutney-testing.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸš€ | Do not allow targets with same name

nbrouand opened this issue Β· comments

Describe your use case

Since the target name is used as an identifier, having targets with the same name in the same environment is not recommended.
We could warn users and even prevent execution, since it could lead to unexpected system state.

Describe the solution you'd like

In JsonFilesEnvironmentRepository.java, on doSave verify that there are no targets with same names (raise an exception with details).