Protractor
ng-mocks
Our great sponsors
Protractor | ng-mocks | |
---|---|---|
19 | 9 | |
8,762 | 987 | |
-0.0% | 1.5% | |
0.0 | 10.0 | |
10 months ago | 4 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Protractor
-
Introduction to Cypress and UI Test Automation
Cypress is a next-generation front-end Automation testing tool built for modern web applications. It is a JavaScript-based end-to-end testing framework and is known for faster test execution as compared with other testing tools (like Selenium or Protractor).
-
Overview over Angular’s repositories
Protractor repo (link)
-
Nx 14.5 - Cypess v10, Output globs, Linter perf, React Tailwind support
Protractor has been deprecated for a while on the Angular CLI side and given Nx has had Cypress support for a while it has never been a popular choice. Starting with this release we're deprecating the generator for setting up Protractor and we're planning on removing support entirely in Nx v15.
-
Help with automatization
The Protractor testing framework was created for e2e testing of Angular apps. https://www.protractortest.org/
- Unit testing library for Angular application
-
Angular 12 in Depth
As explained in the announcement, back in 2013 when Protractor was created, WebDriver was not a standard, and end-to-end (e2e) tests were hard to write, and a nightmare to maintain. Protractor brought an innovative solution by wrapping selenium-webdriver, and provided a way to control the execution flow.
In April, the Angular team has announced plans to end the support of Protractor at the end of 2022.
-
Looking for some advise/direction on a new testing framework
"The Angular team plans to end development of Protractor at the end of 2022 (in conjunction with Angular v15)." - https://github.com/angular/protractor/issues/5502
-
What UI testing framework do you use and what do you like/dislike about it?
Angular will deprecate Protractor soon https://github.com/angular/protractor/issues/5502
-
Angular and WireMock integration for UI testing
https://www.protractortest.org/ Large scale Angular testing with Protractor | Andres Dominguez | BuzzJS Summer 2016
ng-mocks
-
Informal AMA: Angular Signals RFC
Is the Angular team aware of NG Mocks and NG Spectator?
-
Is Unit Testing in Angular overrated?
No way, you just mock the services. Check out this library: https://www.npmjs.com/package/ng-mocks
-
Unit testing <google-map>, Export of name 'mapMarker' not found!
I recommend using MockModule from ng-mocks https://www.npmjs.com/package/ng-mocks
-
20+ JavaScript Utilities to Boost Your Productivity As a Developer
8. NG-Mocks
-
Spec file "Cannot read property of 'subscribe' of undefined"
Also, for mocking, I recommend looking into ng-mocks. https://github.com/ike18t/ng-mocks It makes mocking really easy.
-
Unit testing library for Angular application
Correct. When unit testing, you want to test the unit (parent component) in isolation. To do this, you can use something like ng-mocks (my personal favorite) to create mock components. You could also use the NO_ERRORS_SCHEMA but I don't recommend this because I like to verify that my component loads w/ all of its dependencies (even if the are just mocks). If you test your parent component w/ all of its child components, then you are doing a form of integration testing. I tend to refer to it as a grey area between unit and integration testing because there are valuable tests that can be written fairly easily and cheaply that don't truly isolate parent components from their child components.
What are some alternatives?
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
WebdriverIO - Next-gen browser and mobile automation test framework for Node.js
TestCafe - A Node.js tool to automate end-to-end web testing.
jest - Delightful JavaScript Testing.
spectator - 🦊 🚀 A Powerful Tool to Simplify Your Angular Tests
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
jest-mock-extended - Type safe mocking extensions for Jest https://www.npmjs.com/package/jest-mock-extended
angular-testing-library - 🐙 Simple and complete Angular testing utilities that encourage good testing practices
Nightmare - A high-level browser automation library.
dayjs - ⏰ Day.js 2kB immutable date-time library alternative to Moment.js with the same modern API
jasmine - Simple JavaScript testing framework for browsers and node.js
mocha - ☕️ simple, flexible, fun javascript test framework for node.js & the browser