Bug killing
I’ve fixed the bug preventing a clean bootstrap experience using the wpcept wpbootstrap
command that comes with the WP Browser Codeception add-on and pushed the modification to the package master branch on GitHub.
Command argument modification
While I was there I’ve also decided to modify the command needed to bootstrap the tests in a test pyramid fashion to make things clearer: the wpcept
command supplies methods specific to WordPress testing and adopting the aforementioned test organization is a personal taste unrelated to WordPress. As such I’ve replaced the command
wpcept wpbootstrap
with
wpcept bootstrap:pyramid
So now running the command
wpcept bootstrap
will bootstrap the test suites like
unit
withAsserts
andUnitHelper
modulesfunctional
withFilesystem
,WPDb
,WPLoader
andFunctionalHelper
modulesacceptance
withWPBrowser
,WPDb
andAcceptanceHelper
modules
while using the command
wpcept bootstrap:pyramid
will bootstrap the test suites the “alternative” way:
unit
withAsserts
andUnitHelper
modulesservice
withFilesystem
,WPDb
,WPLoader
andServiceHelper
modulesui
withWPBrowser
,WPDb
andUIHelper
modules It’s nothing more but a name change but I felt like it was needed.
The possibility to bootstrap suites the default Codeception way remains using thecodecept
command.