These are chat archives for
Behat/Behat
22
nd
Jan 2017
Toggle Heatmap
Sign in to start talking
Behat/Behat
BDD framework for PHP 5.3+
Ciaran McNulty
@ciaranmcnulty
Jan 22 2017 10:04 UTC
I tend to start with one context per suite
Then break it down when I find I have separate sets of step definitions that don't share state - for me this tends to be emergent
When using multiple suites a good heuristic is to split things common to both suites into one context
Ultimately there isn't a right answer - if you're not sure yet, just split in a way that makes sense and change it later
If your main driver is keeping the files short/comprehendable consider using Traits
_