Add a guide showing how to set up an Angular project with Karma and Protractor
See original GitHub issueWe default to Jest and Cypress when create an Angular project. And we don’t give an option to use Karma when folk using presets.
To create a project with karma, you need to do something like this:
npx create-nx-workspace myorg --preset=empty --cli=angular
ng add @nrwl/angular
ng g app myapp --unit-test-runner=karma
We should document it
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Testing - Angular
The Angular CLI takes care of Jasmine and Karma configuration for you. It constructs the full configuration in memory, based on options specified...
Read more >Angular — A Comprehensive guide to unit-testing with ...
A step by step guide to a unit testing angular project with some examples ... Angular recommends Karma and CLI create it out...
Read more >Testing AngularJS with Protractor and Karma - part 1
v4 - adds E2E tests. Contents. Project Setup; Configuration Files; Unit Tests; Conclusion. Project Setup. Start by cloning the repo, checkout ...
Read more >Tutorial - Protractor - end-to-end testing for AngularJS
To run, you will need to have Node.js installed. You will download Protractor package using npm, which comes with Node.js. Check the version...
Read more >Testing Angular with Jasmine and Karma (Part 1) - DigitalOcean
Karma is a direct product of the AngularJS team from struggling to test their ... Unless you add some additional configuration your typical ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The above comments weren’t working for me, but this got me to my desired state (Angular CLI, Karma, NPM):
I actually have a small “guide” for it.
I personally was not aware you could also do this with
--unit-test-runner=karma