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

Add npm Karma plugins and rake task for JavaScript testing #46

Closed
wants to merge 4 commits into from
Closed

Add npm Karma plugins and rake task for JavaScript testing #46

wants to merge 4 commits into from

Conversation

Johnnycus
Copy link

There are no project tests, just sample test.

@@ -0,0 +1,5 @@
desc "Run Karma tests"
task :test do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's rename this file js_tests.rake and the task as well to js_tests.

We can have a test task that does both rspec and karma.

@justin808
Copy link
Member

We can get some inspiration on the React components to test here:

https://github.com/react-bootstrap/react-bootstrap/blob/master/test/ButtonSpec.js

@Johnnycus this is a good start!

The goal is to provide a clean simple example of how we'd add JS tests to a project like this.

This project is in active development: https://github.com/gaearon/redux and it might be the right example.

An older project that shows testing of react components: https://github.com/react-bootstrap/react-bootstrap.

@Johnnycus Johnnycus closed this Aug 1, 2015
@Johnnycus Johnnycus deleted the feature/karma-setup branch August 1, 2015 19:51
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

Successfully merging this pull request may close these issues.

None yet

2 participants