Re: [Rails-core] Regarding JavaScript testing

2017-02-24 Thread Rodrigo Rosenfeld Rosas
For our particular application, I have created my own test runner on top of Buster.js. One of the reasons is that I wanted more than just unit tests, as I wanted integration tests for my JS bundles. In order to ensure all dependencies are declared correctly, we run each top-level context in the

Re: [Rails-core] Regarding JavaScript testing

2017-02-24 Thread Chad Woolley
Couple of data points: We are moving to Elm for all our client code, so Karma or Mocha wouldn't help us much, as we use elm-test. Also, we have multiple bundles for different SPAs living within the same Rails app, so I also wouldn't want to see the hardcoded assumption that all tests have to be

Re: [Rails-core] Regarding JavaScript testing

2017-02-24 Thread Rodrigo Rosenfeld Rosas
Great to hear that :) I'm looking forward to see some Mocha integration in Rails 5.2 ;) Cheers, Rodrigo. Em 23-02-2017 18:09, Rafael Mendonça França escreveu: Thank you for the feedback Rodrigo. I think it is worth to explore possibilities for JavaScript tests. I don’t see why Rails could

Re: [Rails-core] Regarding JavaScript testing

2017-02-23 Thread Rafael Mendonça França
Thank you for the feedback Rodrigo. I think it is worth to explore possibilities for JavaScript tests. I don’t see why Rails could not integrate better with the test ecosystem in the JavaScript community and I think it is a valuable direction to take. We didn’t included anything in this line in