In my feature file I have 1 scenario outline with two examples that creates two teams. These teams are preconditions to two other scenarios: one deletes the empty team and one adds a user to a team. Obviously I require that the team creation runs before the other two scenarios. I named them starting with 01(for the team creation)/02(removing team)/03(adding user). Now, when I run dotnet test this executes fine. But when I use VS Test Explorer the tests are displayed like this in a tree:
_02RemoveTeam
_03AddUser
+_01AddTeam
|- AddTeam("team1")
|- AddTeam("team2")
As you can test cases coming from scenario outline go at the end. Question is simple: how do I prevent that? I just want my tests executed in alphabetical order.
Alternatively I was considering using Gherkin's Background keyword, but to my knowledge Background cannot be parametrized so I wouldn't be able to create two teams with different names.