My team is using Cucumber / Ruby on Rails. We have some scenarios such as the following:
Scenario: Create a Data Set
Scenario: Update a Data Set
Scenario: Invalid Data Set - Invalid Name
Scenario: Invalid Data Set - Missing Source
Scenario: Invalid Data Set - Invalid Rate
...
A co-worker is asking that I group together all of the invalid tests into a single scenario. His reasoning is because when we sit with our Quality team, we have to read all of the scenarios aloud, and it would save time by only reading one instead of many. I don't think I can agree with this because I feel that tests should be completely isolated. If I want to add a new invalid scenario, then I would have to run more code than I need to if they were grouped together. I wanted to know if anyone had a more official answer.
Is it bad to group together like tests into a single test?
Aucun commentaire:
Enregistrer un commentaire