Giter Club home page Giter Club logo

Comments (6)

SampsonCrowley avatar SampsonCrowley commented on July 29, 2024 3

Cypress definitely makes End-to-End testing easier, but I think we would be better off using tools that 1. already a part of the Rails ecosystem, and 2. are not reliant on a paid service.

I think pre-defined System tests in rails are the better way to go

from stimulus_reflex.

julianrubisch avatar julianrubisch commented on July 29, 2024 2

AFAIK @hopsoft started setting up a testrigor suite that runs against expo.stimulusreflex.com.

Still, integration tests would be good to have, but it would require setting up a dummy rails app and setting up CI for system tests, which is altogether quite large a task.

If anyone would set up a test/dummy app in a PR, that would be a good start though - what do you think @hopsoft , @leastbad , @andrewmcodes ?

from stimulus_reflex.

SampsonCrowley avatar SampsonCrowley commented on July 29, 2024 1

@jonathan-s Whoops! I think our issues (mine: #164 ) are a little too closely related; I guess I should have read through yours instead of just assuming it was about a specific tool you are using playing nicely with this library. Would you mind removing cypress.io from the title, to allow for tool agnostic suggestions? cypress.io should be a suggested way to do it, not the feature of the issue here; which is really about making tests easier for end users.

I'll close #164 in favor of this one to keep the discussion here.

from stimulus_reflex.

jonathan-s avatar jonathan-s commented on July 29, 2024 1

Just to show how things would look like using cypress.io

This is the folder structure that cypress.io initializes
https://github.com/jonathan-s/django-sockpuppet/tree/master/cypress

and you'll find a simple test here:
https://github.com/jonathan-s/django-sockpuppet/blob/master/cypress/integration/websocket_spec.js

That test tests that the increment example in the quickstart works as expected.

from stimulus_reflex.

jonathan-s avatar jonathan-s commented on July 29, 2024

That seems like a valid option as well. Though I'd like to note that cypress is paid to an even lesser degree than say travis that we all use and love.

Ultimately, I think the one who starts making this has more decision power than me :) (because I don't know enough ruby to make some parts that are required).

from stimulus_reflex.

leastbad avatar leastbad commented on July 29, 2024

At this point, running the integration tests on the Expo project is the primary vehicle for testing SR. I know that there are some JS tests making their way into the framework as well.

Finally and perhaps most importantly, see https://github.com/podia/stimulus_reflex_testing for tools to test SR-enabled apps.

from stimulus_reflex.

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.