ui-testing-best-practices

Component vs (UI) Integration vs E2E tests


One Paragraph Explainer

Speaking about UI Testing (remember that we are speaking about the UI only, not the underlying JavaScript code), there are three main test types:

Alternatively, Cypress came out with its own solution in order to launch component tests iside it, take a look at the Unit Testing React components with Cypress chapter.

Identifying/defining the type of test is useful to group them, to name the test files, to limit their scope, and to choose where to run them or not though the whole application and deployment pipelines.



Crossposted by NoriSte on dev.to and Medium.