Comments (6)
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.
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.
@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.
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.
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.
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)
- Controller over reflex attribute is ignore and reflex is always called with default StimulusReflexController HOT 7
- Broken Next Page Link on Welcome Page of Docs HOT 2
- HEAD and most of the latest releases are broken, references an undefined exception
- StimulusReflex is not compatible with the standalone ActionCable server HOT 9
- Wrong dataset getting from Docs example HOT 2
- NameError: undefined local variable or method `package_json' HOT 3
- Reflex not triggered when a Stimulus controller is also attached to a field HOT 4
- Form parse errors are not captured and reported back to front-end
- Drop Rails 5 and 6.0 support
- `solid_cache` seems to work as well as Rails cache store HOT 1
- Add full-stack tests
- Stimulus_reflex and esbuild error HOT 1
- OpenStruct no longer supported by json HOT 1
- Refactor away instances of OpenStruct
- NameError: uninitialized constant StimulusReflex::Installer::Thor when running rake tasks HOT 1
- Support `relative_url_root`
- Could not find generator 'stimulus_reflex:initializer'
- Unrecognized command "esbuild" (Rails::Command::UnrecognizedCommandError)
- Installer should work in CI (noninteractive) environment
- docs recommend hiredis gem along with incompatible redis version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stimulus_reflex.