ember.js - Can I use 'ember generate' to generate tests for existing 'objects'? -
i have ember eak project migrated ember cli, tests coded mocha/chai test runner don't run correctly in migrated project, though i've installed ember-cli-mocha. can use 'ember generate', mocha blueprints, generate new test stubs can go in , more or less re-implement had tests in eak?
so want use 'ember generate' generate tests existing routes, controllers & views, rather generating new stub objects , tests together.
yes, can indeed this, using ember generate
blueprints of controller-test
, route-test
, etc.
ember generate controller-test my-resource
this documented @ http://www.ember-cli.com/#appendix. ember-cli feature, not ember feature, covered in documentation former. additional information can obtained ember generate help
.
Comments
Post a Comment