Run Playwright Tests in Bitbucket Pipelines
ฝัง
- เผยแพร่เมื่อ 4 ต.ค. 2024
- In this video, I show you how to integrate automated Playwright tests to Bitbucket Pipelines. You'll learn how to configure Bitbucket Pipelines to install the test framework, run the tests and save artifacts.
Subscribe: www.youtube.co...
LinkedIn: / martti-venell-076910261
More about CI: • Continuous Testing
More about test automation: • Test Automation
Good one Martti
Thank you!
can you prepare a demo using playwright on bitbucket pipelines running tests with multiple workers and shards?
Here's my video about test sharding: th-cam.com/video/42jRjc923oE/w-d-xo.html
I get this error message, with exactly the same .yml file "npm error The `npm ci` command can only install with an existing package-lock.json or
npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or"
Can you help?
Yes, of course. Check from your repo that you committed also package-lock.json. If you use npm ci, it needs that. You can also try leaving out the npm ci line, but that’s not the recommended way (by the Playwright team).
@@errorfarm thanks for the Quick reply. I'm a beginner in test automation. In which folder do I need to check? In the node_modules folder I do only see a package.json and not a package-lock.json. What is the easiest way to fix this?
It should be in the project folder (not in node_modules folder). Go to that folder with terminal or command prompt. Check what files are in the version control by typing 'git status'. Then add the file 'git add package-lock.json'. Commit: 'git commit -m "Added package lock file"'. Push: 'git push'.
Awesome
Thanks!
What's that song
There are three songs from Track Tribe:
1. Last Train North
2. As You Were
3. Now I Know