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
I’ve set up testing for an Yii2 app. The test suite (unit and functional) runs fine locally, while it fails when executed via Gitlab CI. It's a single test failing, all the others passes. Additionally, if I run that single test only, it passes on CI!
Codeception is configured to reset DB at each test, so it shouldn't be a problem of bad data.
The test checks if a list (GridView) contains certain rows, loaded from fixtures. When the test fails on the CI, I see there are two rows in the list of the generated HTML, but they contain no data, as if they're empty db rows.
I ran out of options and I don't know how to further debug this.
Any hint on what else I can check would be welcome.
thanks
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’ve set up testing for an Yii2 app. The test suite (unit and functional) runs fine locally, while it fails when executed via Gitlab CI. It's a single test failing, all the others passes. Additionally, if I run that single test only, it passes on CI!
Codeception is configured to reset DB at each test, so it shouldn't be a problem of bad data.
The test checks if a list (GridView) contains certain rows, loaded from fixtures. When the test fails on the CI, I see there are two rows in the list of the generated HTML, but they contain no data, as if they're empty db rows.
I ran out of options and I don't know how to further debug this.
Any hint on what else I can check would be welcome.
thanks
This is the test code:
Running on Codeception v4.2.2, PHPUnit 8.5.31.
Beta Was this translation helpful? Give feedback.
All reactions