Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript Tests? #53

Open
rwaldron opened this issue Oct 23, 2011 · 2 comments
Open

JavaScript Tests? #53

rwaldron opened this issue Oct 23, 2011 · 2 comments

Comments

@rwaldron
Copy link

Will there be any unit/acceptance/behaviour tests written for public/js/app.js? There are a number of issues I'd like to file and patch, but I'm concerned about doing so without at least some basic verification tests

@JonnieCache
Copy link
Contributor

I think perhaps all testing should be kept in the ruby layer, with capybara doing the integration testing of the javascript in a full-stack manner. None of the javascript is really suitable for individual unit tests as its basically all DOM interaction and ajax requests.

This project does need a test suite though.

@rwaldron
Copy link
Author

Awesome, glad to see there is more interest in this :) I've actually started writing unit tests by copying some rendered markup from the site and stubbing ajax calls. I'd like to put all JS functionality in its own object (namespace).

Hopefully my pull request with js tools is landed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants