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

Jasmine karma #9

Merged
merged 14 commits into from
Aug 7, 2014
Merged

Jasmine karma #9

merged 14 commits into from
Aug 7, 2014

Conversation

tommyh
Copy link
Contributor

@tommyh tommyh commented Aug 7, 2014

Branched from #2.

  • Use karma for test runner.
  • Browsers are chrome, firefox, phantomjs
  • watch is on

Does this make sense so far?

@jonathan-beebe
Copy link
Contributor

This is great. Ran a few tests using React.addons.TestUtils perfectly.

To get it running I had to manually install karma-cli:

npm install karma-cli

@tommyh
Copy link
Contributor Author

tommyh commented Aug 7, 2014

Yeah, I will probably remove the karma-cli dependency and just make the 'npm test' command slightly longer. (Because karma-cli wants to be in the global install, not the dev-dependencies)

@brigand
Copy link
Collaborator

brigand commented Aug 7, 2014

@tommyh karma-cli seems fine being a dev dependency. You just have to run it from a package.json script, because that adds ./node_modules/.bin/ to your PATH.

$ npm install --save-dev karma-cli
$ karma
bash: karma: command not found
$ npm test
...
TOTAL: 2 SUCCESS

I'm on a Mac, does this not work on your OS?

brigand added a commit that referenced this pull request Aug 7, 2014
@brigand brigand merged commit 7b7ccf7 into master Aug 7, 2014
@brigand brigand deleted the jasmine-karma branch August 9, 2014 03:22
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

4 participants