Closed Hiro-Nakamura closed 7 months ago
Note: [wip] remove references to Common.RunSql()
(https://github.com/digi-serve/kitchensink_app/pull/97/commits/4aacabc53da3488ed66cf21ad4922ea7be6ad700) causes multiple test to fail:
Common.RunSql()
will fail silently, so a lot of our tests are written around SQL with errors. When we switched to cy.RunSql()
, I wanted these to fail in a way we see and fix them. I hoped that we would slowly switch over to cy.RunSql()
and fix the SQL errors. That's why I didn't tackle switching everything over at once, but it has been awhile now.
So: we'll need to fix the underlying SQL errors or keep using Common.RunSql
.
Yeah, apparently our chart and comment tests were manually trying to reapply an sql patch that is already being applied in our integration.cy.js -> beforeAll() case.
Just removing the additional calls in those files will do the trick.
FYI: I made some updates to allow for a "local" version of the tests to be run that don't perform a complete DB reset before every it("test")
is run.
Without these changes, it could take my local system 45 min to run the tests. Which isn't a workable expectation.
With these changes, the integration_local
version will run in about 10 min on my system. Much more workable. And only performs the DB resets at specific times when the tests require them.
Some of these update our tests because our tests are outdated, and some of these changes work better on a system that is older and slower. Hopefully those changes don't invalidate the tests, just make sure they wait longer for a slower system to respond.
Release Notes