-
-
Notifications
You must be signed in to change notification settings - Fork 747
Can the Codecept home page examples be re-written to be Third Person perspective instead of First Person? #4974
-
It is generally agreed that using Third Person perspective is preferred to using First Person perspective when writing BDD tests. Granted that's not universal, but far more recommendations are for Third Person. E.g. as one example: https://automationpanda.com/2017/01/18/should-gherkin-steps-use-first-person-or-third-person/
From Google search (https://www.google.com/search?q=codecept+first-person+vs+third-person):
Recommendation:
While both perspectives can be used in Codeception, third-person is generally recommended for its clarity, reusability, and ability to describe a wider range of scenarios.
Consistency:
It's best to choose one point of view for an entire project and use it consistently across all test scenarios.
So it would be good if the examples on the home page for codecept.io could be re-written to use Third Person perspective. We use that all the time with our tests so test scenarios can be written more clearly specifying "admin user", "normal user", "view-only user", etc.
Beta Was this translation helpful? Give feedback.