Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Documentation: Make clear that beforeeach and aftereach are not called in a child suite #958
Comments
|
@pesse Hi. I was a little surprised to know that before each from parent suites are not called automatically in child suites. Is there any specific reason for that? As an example, if I have the parent suite where roll back setting is set to manual and the beforeeach procedure is written in a way to use it (I'm doing some system-wide setup and tear down actions which require manual transaction manipulations), and then child suite uses roll back auto, when the parent beforeeach is called from child it generates warnings like "Unable to perform automatic rollback after test context. An implicit or explicit commit/rollback occurred in procedures ...". |
|
I'm not sure if I'm understanding your use-case properly. |
|
@pesse basically i wanted to use a generic setup routine which makes some transaction actions with commits/rollbacks and have defined it in the separate package with roll back setting set to manual. |
Describe the bug
Make clear that
--%beforeeachand--%aftereachdefined in a parent suite are not called in the child suite(s)They can, however, be referenced like that: