Hi, Please help me if you can...
I use symfon5 with friends of Behat and I am unable to run only one suites.
Is always ask me to define steps in other context.
This is my yml :
default:
suites:
login:
contexts:
- Api\LoginContext
register:
contexts:
- Api\RegisterContext
extensions:
FriendsOfBehat\SymfonyExtension: ~
Behat\MinkExtension:
sessions:
symfony:
symfony: ~
I wish to run only register but throw "register suite has undefined steps. Please choose the context to generate snippets:" and ask me to define steps from login context
Given I have a table named 'table' in a PG database with data ...
and you can write a specific implementation for your PG database; so if your component uses PDO, would you instantiante a PDO instance in your test with a DSN pointing to a test db? In a situation where this could be swapped out for another DSN connecting to a different type of database (with it's own implementation) you'd set all that up a second time? This just seems like the wrong way to go about things and I'm not sure how to go about it.
Hello @Anyqax , question is why? test with dependencies that can change state is dangerous. Why you need that?
I'm not refering to state dependencies between tests but rather logical "dependencies"
cases where e.g. when a simpler test A fails, it's just unneccessary to execute a more elabore test B because it's expected to fail as well and obfuscates the cause in the test result output