[Rails-core] Regarding JavaScript testing

2017-02-23 Thread Rodrigo Rosenfeld Rosas
Hi, I was happy to read the new features for Rails 5.1 here: http://weblog.rubyonrails.org/2017/2/23/Rails-5-1-beta1/ Specially as I have already been using webpack,npm and yarn for a while (well, yarn just recently, of course) and I'm pretty happy with the results. My main motivations were cl

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 5.

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 no

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 r

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 sui