Skip to content

Add initial client unit test. #4527

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

Merged
merged 1 commit into from
Nov 27, 2014
Merged

Add initial client unit test. #4527

merged 1 commit into from
Nov 27, 2014

Conversation

rwjblue
Copy link
Contributor

@rwjblue rwjblue commented Nov 27, 2014

Adds basic client unit testing setup using ember-mocha.

There are many example blueprints for unit tests using ember-cli-mocha here. These are written for Ember CLI, but apply nearly the same here.

My hope is that this is just the beginning of many unit tests for the admin client.


Running testem in the root of the project brings up the testem runner:

screenshot

Navigating to http://localhost:7357/core/test/client/index.html then shows the browser tests:

screenshot

Addresses #2990.


p.s. Sorry it took me so long...

@@ -769,7 +815,7 @@ var _ = require('lodash'),
// details of each of the test suites.
//
grunt.registerTask('test', 'Run tests and lint code',
['jshint', 'jscs', 'test-routes', 'test-module', 'test-unit', 'test-integration', 'test-functional']);
['jshint', 'jscs', 'test-routes', 'test-module', 'test-unit', 'test-integration', 'test-functional', 'shell:testem']);

This comment was marked as abuse.

@jaswilli
Copy link
Contributor

Awesome. 🎉

@ErisDS
Copy link
Member

ErisDS commented Nov 27, 2014

So much epic 🎊 🎈 🍰

@rwjblue THANK YOU soooooooo much for taking the time to do this 😁
@jaswilli I totally agree - but I think this is going to be the trigger for a few restructuring changes to the tests and we can do that separately :)

ErisDS added a commit that referenced this pull request Nov 27, 2014
Add initial client unit test.
@ErisDS ErisDS merged commit 1db30f8 into TryGhost:master Nov 27, 2014
@rwjblue rwjblue deleted the unit-tests branch November 27, 2014 12:26
@ErisDS ErisDS mentioned this pull request Dec 14, 2014
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.

3 participants