You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems like the documentation for the 'cleanup' configuration option ist not correct:
cleanup: false - whether the dump should be reloaded before each test
It think more correct would be:
cleanup: false - whether all database tables should be dropped
I am not quite sure if this dropping happens once or before each test.
The docs mention the 'clearing' of the database, but not in connection with this option.
Make this more precise would be great!
The text was updated successfully, but these errors were encountered:
populate: false - whether the the dump should be loaded before the test suite is started
cleanup: false - whether the dump should be reloaded before each test
I had another look today.
Multi-DB change back in 2018 made cleanup code really difficult to follow.
I see that cleanup is dependent on populate - if populate is off, then cleanup setting has no effect.
The actual logic is:
publicfunction_beforeSuite()
{
if ($populate) {
if ($cleanup) {
dropAllTables();
}
loadDump();
}
}
publicfunction_before()
{
if ($cleanup && $populate) {
dropAllTables();
loadDump();
}
}
Also they have additional conditions and only run if either dump file is non-empty or populator setting is set.
populator setting is not mentioned in Config section, but has it's own chapter right after examples.
Hi,
seems like the documentation for the 'cleanup' configuration option ist not correct:
cleanup: false - whether the dump should be reloaded before each test
It think more correct would be:
cleanup: false - whether all database tables should be dropped
I am not quite sure if this dropping happens once or before each test.
The docs mention the 'clearing' of the database, but not in connection with this option.
Make this more precise would be great!
The text was updated successfully, but these errors were encountered: