GithubHelp home page GithubHelp logo

Comments (9)

SimoTod avatar SimoTod commented on June 15, 2024 1

Cypress seems to do the job. Thanks everybody.

from alpine-turbo-drive-adapter.

HugoDF avatar HugoDF commented on June 15, 2024

Would it be worth using something like Cypress or other E2E testing solution?

Dunno how much sense unit testing the adapter makes, but having a couple of use cases running against a some HTML files would be good value/effort

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024

Yeah, I think it would be good to test the use case that the library is supposed to solve.
I had a first go with puppeteer but it just doesn't work and I don't understand why, lol. (https://github.com/alpinejs/alpine-turbolinks-adapter/pull/new/tests).

from alpine-turbo-drive-adapter.

ryangjchandler avatar ryangjchandler commented on June 15, 2024

I've got a feeling Cypress is going to be better for this than a Puppeteer setup. Let me know if you need any help.

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024

yeah, I just picked a random one since I don't have any experience with that. I'll try cypress. 👍

from alpine-turbo-drive-adapter.

ryangjchandler avatar ryangjchandler commented on June 15, 2024

Let us know if you need any help :)

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024

@ryangjchandler is there a way to run cypress without relying on the fact that I have a browser installed on my machine (like puppeteer does)?

from alpine-turbo-drive-adapter.

ryangjchandler avatar ryangjchandler commented on June 15, 2024

@SimoTod most browser test suites need an actual browser instance to run. Cypress has a good GitHub Action though which bootstraps the environment etc.

from alpine-turbo-drive-adapter.

SimoTod avatar SimoTod commented on June 15, 2024

Cool, it seems that cypress from terminal runs using electron by default. I don't think I need the dashboard so I'll just use a standard test action for now (https://github.com/alpinejs/alpine-turbolinks-adapter/actions/runs/175728156). Thanks for your advice, cypress seems way easier than puppeteer. 👍

from alpine-turbo-drive-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.