New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add gulp e2e test #3318
ci: add gulp e2e test #3318
Conversation
Adds an E2E test for coverage and validation that Yarn berry is able to install gulp successfully and then verify it can be used successfully. After installing gulp, a simple script is added to create a default gulp task that prints a statement. Running the gulp command runs the task, making sure the bare basic functionality is able to run. Then, in order to make sure that we are able to import and use the gulp api, a test is used to use the src function from gulp to load the script file that's running. Also, it makes sure we can use gulp with a specific task name as well. This should be a start to verifying gulp is installable with yarn and working as intended.
Ref gulpjs/gulp#2621 |
Nice, thanks! Interestingly the test seems to pass, unlike what gulpjs/gulp#2621 suggests 🤔 cc @bhanubais |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds badge to display the status of Gulp E2E tests to the ReadMe alongside the rest.
Gulp is successfully running with Yarn berry from version 4 and up. This adds it to the compatibility list. Yarn may potentially support earlier versions, but the E2E tests succeed for the 4 line, and not 3.91 and below due to varying issues.
No problem, just happy to find a way to help! I was able to get this E2E test for 4.0.2 like mentioned in that issue as well as 4.0.0. If there's another edge case to cover for their workflow it will be interesting to see what the discrepancy is. |
What's the problem this PR addresses?
The Gulp package is still missing from the list of completed E2E tests required by #368.
How did you fix it?
I added an E2E test that installs gulp to a project as a dev dependency and tests with two short scripts.
One creates a simple default task that should run successfully when running "gulp", validating that the dependency installed and is able to run.
The next creates a public task that can be run with the "gulp " CLI argument, and validates that we're able to import and use the gulp API by making use of the src() function to load the script file in.
I look forward to any suggestions for how to expand or improve E2E coverage for Gulp. Thanks for your time!
Checklist