GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Ignore E2E test data for Git export by MauricioFauth · Pull Request #622 · phpmyadmin/sql-parser Conversation
|
| */ | ||
| public function getData(string $name): array | ||
| { | ||
| if (! file_exists('tests/data/' . $name . '.out')) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think this would be too risky for new tests to have missing data
can you check in setUp() if the folder exists?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There some test classes that have more than e2e tests, so skipping in setUp() will also skip valid tests that do not depend on that.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The best option is to refactor the tests, but I don't know how much refactoring is needed. I already attempted changing those tests (#598), but I'm yet to find a good solution.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Okay, can you turn the phpunit to error when there is skipped tests on the CI?
I think that will be a good safety measure
Or use incomplete instead of skipped
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.