Open michalkleiner opened 4 years ago
SilverStripe\ORM\Tests\DatabaseTest::testRepeatedIteration
This test was added recently after a bug was found in other DB drivers. I'm not too surprised to see it for SQLite, but it's probably the adapter that needs fixing here.
Thanks @ScopeyNZ — yeah, one is the module, one is the test itself. Created PRs for both.
We removed SQLite testing because SQLite support wasn't a priority and it was slowing down every single test execution to add this one in there. I'm not keen to add it back to the standard build, but if we wanted a more kitchen-sinky daily or weekly build, we could potentially add it back there.
New PR for the "ReadOnlyTransaction" test - https://github.com/silverstripe/silverstripe-framework/pull/9240
Affected Version
4.4.x-dev
(latest4
)Steps to Reproduce
Enable SQLite tests in
.travis.yml
by adding a new matrix stanza (feel free to remove the other ones to speed up the testing)Export env variables and create public dir
Add and install Composer dependencies
Run framework tests suit
Observed output
Errors in
DatabaseTest::testRepeatedIteration
andTransactionTest ::testReadOnlyTransaction
tests.Expected output
Passing tests without errors.
Considerations
Should at least one set of tests also run against the SQLite database? Without that (removed in https://github.com/silverstripe/silverstripe-framework/commit/c47a1d9091c4cba52109c7fa9d9a46ac57d4ea93 back in 2016), some code changes might be breaking for SQLite support. In fact, it can be viewed as a nice surprise that only two small tests are not passing.
If not run for each PR/build, is there another way how to run tests using SQLite periodically at least once in a while?