Skip to main content

18 docs tagged with "testing"

View all tags

End-to-End Testing with Playwright

Playwright setup, writing your first test, page navigation, clicks, form fills, selectors, headless execution, traces and screenshots on failure, and CI integration.

Integration Testing

What makes a test an integration test, testing database interactions, testing HTTP endpoints with Supertest and MockMvc, and Docker-based testing with Testcontainers.

Introduction to Software Testing

Why testing matters, the testing pyramid, cost of bugs, coverage as a metric, and a tooling overview for JavaScript/TypeScript and Java projects.

Mocking in Java with Mockito

Mockito setup, @Mock and @InjectMocks, when().thenReturn(), verify(), ArgumentCaptor, mocking exceptions, and spy objects.

React Component Testing

React Testing Library setup, render/screen/fireEvent/userEvent, querying by role and text, testing forms, and testing components that fetch async data.

Snapshot & Visual Testing

Jest snapshot testing pros and cons, updating snapshots, when to use them, and an introduction to Storybook for visual component testing.

Test Coverage

Coverage metrics (line, branch, function), configuring Istanbul and JaCoCo, setting thresholds, what good coverage means, and collecting coverage in CI.

Test-Driven Development (TDD)

The red-green-refactor cycle, when TDD makes sense, a worked example building a shopping cart in both TypeScript and Java, and common TDD pitfalls.

Testing

Testing an AEM project normally combines three layers: unit tests against Sling Models and

Testing

Write your first Java tests -- JUnit 5 setup, assertions, test structure, parameterized tests, and testing the Task Manager and REST API.

Testing Strapi Applications

Unit testing services and controllers, integration testing API endpoints, and end-to-end testing strategies for Strapi 5.

Testing Strapi Applications

Strapi testing: setting up a test instance, unit testing services, integration testing controllers and APIs, mocking the Document Service, and CI/CD integration.