Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

How to approach testing? #3

Open
davish opened this issue Dec 26, 2020 · 3 comments
Open

How to approach testing? #3

davish opened this issue Dec 26, 2020 · 3 comments

Comments

@davish
Copy link
Contributor

davish commented Dec 26, 2020

I'm wondering how to approach testing for the utilities we're building? Probably most can be unit-tested, but it's probably also a good idea to make sure they work as intended with Turbo. We could set up integration tests with Cypress?

@blopker
Copy link
Member

blopker commented Dec 26, 2020

Yes! Having and end-to-end test or two will really help. We could run it against one of the sample apps in the repo.

I've had teams in the past use Cypress and have really liked it. However, I wonder if it's too much machinery for this project since Turbo's interactions are pretty simple. Maybe something like https://playwright.dev/ would be simpler to set up in CI. The Docker story seems more straightforward: https://playwright.dev/docs/docker/README. I also think we can get away with only testing in 1 browser since all the heavier testing would be done in the official Turbo repo.

@blopker
Copy link
Member

blopker commented Dec 26, 2020

Although, the Cypress Github Actions support looks pretty good! https://github.com/cypress-io/github-action

@jonathan-s
Copy link

It's not difficult at all to set up tests with cypress. I'm using cypress for sockpuppet.

scuml added a commit that referenced this issue Aug 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants