1

I'd like to know:

How do you test your javascript in your Rails App?

I used to do Integration Tests with capybara, but now that I'm working on a map-based solution with rails, that has a far more complex javascript part than the rails part, capybara feels really kludgy.

Also, I'd like to execute javascript tests that not only test the interface, but also particular javascript functions.

I heard about mocha, but I don't really know if its possible to integrate it so that my test are executed on my CI Server?

Thanks

1 Answer 1

2

I don't know what you exactly want to test but i love Jasmine :)

Here is also a cool RailsCast to JavaScript Testing with Jasmine

Also cool is for Rails Testing (javascript): TeaSpoon and Karma

A good look at first is always: The Ruby Toolbox

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks mate, teaspoon does exactly what I wanted and integrates seamlessly with CircleCI. I encourage everyone to check it out!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.