Skip to content
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

Add cypress_test e2e testing rule #607

Closed
Toxicable opened this issue Mar 8, 2019 · 9 comments
Closed

Add cypress_test e2e testing rule #607

Toxicable opened this issue Mar 8, 2019 · 9 comments

Comments

@Toxicable
Copy link

Toxicable commented Mar 8, 2019

🚀 feature request

Description

A more DX friendly e2e testing rule

Describe the solution you'd like

cypress_test rule with support for ibazel test/run - cypress open and bazel test/run - cypress run

Describe alternatives you've considered

protractor_web_test_suite

Current blocking issues

Test

Run

ibazel

@Globegitter
Copy link
Contributor

One way to get around the write issue from bazel's pov is by adding the --sandbox_writable_path=/ but that is of course not great as it renders that the read-only FS useless.

Also what is strange, we started to integrate cypress into our bazel CI setup recently (in a quite "quick and dirty" way) and while I do get the read-only FS error when running bazel test locally strangely enough our circleci setup just works:

It looks like this is your first time using Cypress: 3.2.0

[19:22:17]  Verifying Cypress can run /home/circleci/.cache/Cypress/3.2.0/Cypress [started]
[19:22:19]  Verified Cypress!       /home/circleci/.cache/Cypress/3.2.0/Cypress [title changed]
[19:22:19]  Verified Cypress!       /home/circleci/.cache/Cypress/3.2.0/Cypress [completed]

I am really not sure how that is possible, I can only guess it has something to do with the docker setup we are running there.

@Toxicable
Copy link
Author

@Globegitter Is Cypress possibly working outside of the Bazel directories?

@Globegitter
Copy link
Contributor

Yeah that could be, I am still not sure however what the real difference is between the circleci setup and my local one. But I guess I would just need to spend some time investigating. And while it is a bit worrying the positive aspect about it is we can use it now already in our CI setup.

@marcus-sa
Copy link

marcus-sa commented Aug 13, 2019

What's the progress on this?

@Toxicable
Copy link
Author

We're still blocked on Cypress.
Check the related issues for any updates

@yohcop
Copy link

yohcop commented Feb 27, 2020

I think the 2 referenced issues on cypress were fixed! :)

@abhinaba-ghosh
Copy link

@Globegitter , Hi, do you have any documentation or example project to make cypress work with bezel? Any guidance will help!

@marcus-sa
Copy link

marcus-sa commented Jun 16, 2020

@abhinaba-ghosh there's a PR to add cypress rules to rules_nodejs #1930

@mattem
Copy link
Collaborator

mattem commented Jul 19, 2020

#1930 is now merged and released as part of 2.0.0 so this issue can be closed I think.
Example here

@mattem mattem closed this as completed Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants