3 ms·
Would be great to see a paragraph or two about how to write tests for this functionality. Testing has been my pain point regarding front end development with Ra
by lucidone 6y ago
Would be great to see a paragraph or two about how to write tests for this functionality. Testing has been my pain point regarding front end development with Rails. Compelling tech all the same and a great article.
- nicoburns 6y ago> Testing has been my pain point regarding front end development with Rails Are there any technologies where UI testing isn't a massive pain?
- ch4s3 6y agoI've recently found tests for LiveView with Phoenix to be pretty nice. They're a little bit slower than regular tests, but quite a bit faster than Rails with like Capybara or something like Cypress. Though they are less full featured than something like cypress. YMMV
- strzibny 6y agoI am heavy on testing as well. I believe that Basecamp guys would just use the Rails system tests. Therefore there is nothing unique about using Stimulus.
- sam0x17 6y agoIs capybara + headless chrome / selenium no longer a panacea for all integration testing? I've even used it in a React app.
- JeremyNT 6y agoThis is exactly what I use for my Rails apps and rails provides its own abstraction and helpers to make setting up Capybara especially painless. For any seasoned rails developer this is not difficult. Nothing about hotwire changes the testing approach in any meaningful way versus the old style ujs/jquery techniques, so the older system test tutorials and SO questions are just as valid as they were before.