Reputation: 1251
I want to invoke jasmine tests from within an Angular controller.
I want to kick off the jasmine tests from within my angular application.
Are there examples of running jasmine tests and loading the jasmine environment outside of Node and Karma Test Runner.
Thanks
Upvotes: 1
Views: 46
Reputation: 1251
There is a boot.js file that automatically loads the spec test files and executes them.
To override them we did our own custom boot file.
http://jasmine.github.io/2.0/boot.html
Upvotes: 1
Reputation: 1643
Unless you're writing an app whose sole purpose is to be a test runner that runs Jasmine unit tests, you shouldn't be using production code to run your tests. You should be looking for alternative test runners to node and karma. You may have luck finding a solution that integrates with your IDE, like ReSharper or IntelliJ IDEA, but that depends on what IDE you are using to develop.
Upvotes: 0