angular-testing-library
cypress-testing-library
angular-testing-library | cypress-testing-library | |
---|---|---|
5 | 4 | |
681 | 1,788 | |
2.1% | 0.1% | |
7.4 | 5.4 | |
6 days ago | 6 months ago | |
TypeScript | JavaScript | |
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.
angular-testing-library
-
Mi experience with unit testing in Angular: third time lucky! 💪🏻
A few months ago some colleagues told me about their smooth experience with Jest and Testing Library in a Vue application. Last week I gave it a shot. It took me a couple of hours to remove all Karma and Jasmine dependencies, and to properly configure this new testing platform. After that, I tried to refactor a small component by test driven development, again. This time, it was easier to render each component and its dependencies. However, there weren't enough enough examples and real use cases for testing the actual behavior of the components with ease (even with resources like this or this).
- Usando selectores correctos en Angular Testing Library
-
Obteniendo el mayor valor nuestros tests en Angular
Angular Testing Library Repository Buenas prácticas con Angular Testing Library
- Buenas prácticas con Angular Testing Library
- Escrevendo testes eficientes de verdade no Angular
cypress-testing-library
- Buenas prácticas con Angular Testing Library
-
Automated Accessibility Testing
One of the additional layers you can add to make sure you are building a good, accessible app, is to use “accessible queries” for elements you interact with in the tests. In other words, you find elements by text, labels, roles, aria-attributes, etc., rather than using the IDs or data-test attributes. This applies to all layers of testing. There is a very useful project called Testing Library, which provides you with UI-centric queries out of the box. It has a separate package for many different testing methods and libraries, including the Cypress one: Cypress Testing Library.
-
Cypress.io flakiness making me crazy
Is it a react app? Could be dom churn on the CI? In which case you might take a look at this: potential fix in the CTL.
-
Cypress vs. Testing Library?
From doing some research it seems like most people use Testing Library for unit / integration testing and Cypress for E2E testing, but from reading the documentation of both it seems like you can use them for the same thing. There is also even a Cypress Testing Library to make things even more confusing. So what do you do? Use Testing Library for unit / integration testing and Cypress for E2E? Use Testing Library for everything? Use Cypress for everything? I'm just really curious what people think about this (and it seems like I'm not the only one.
What are some alternatives?
spectator - 🦊 🚀 A Powerful Tool to Simplify Your Angular Tests
cypress-real-events - Fire native system events from Cypress.
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
cypress-axe - Test accessibility with axe-core in Cypress
eslint-plugin-testing-library - ESLint plugin to follow best practices and anticipate common mistakes when writing tests with Testing Library
cypress-plugin-tab - A cypress plugin to add a tab command
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.
cypress-realworld-app - A payment application to demonstrate real-world usage of Cypress testing methods, patterns, and workflows.
user-event - 🐕 Simulate user events
Cypress - Fast, easy and reliable testing for anything that runs in a browser.
atl-good-testing-practices
axe-core - Accessibility engine for automated Web UI testing