Tag: Testing
13 posts
-
Vitest Browser Mode: Running Tests in Real Browsers with Playwright or WebdriverIO
Run Vitest in real browsers: providers, vitest/browser APIs, Playwright vs WebdriverIO, screenshot tests, CI setup, and how Browser Mode differs.
-
Playwright E2E Testing: Auto-Waiting Locators, Route Mocking, Auth State and Sharded CI
End-to-end testing with Playwright: projects, auto-waiting locators, route mocking, auth storage state, sharded CI, trace viewer, and how the runner.
-
Cypress E2E Testing: Stable Selectors, cy.intercept Mocking, Sessions and CI
Build Cypress E2E suites: stable selectors, intercept mocking, session shortcuts, GitHub Actions, and how Cypress’s in-browser architecture differs.
-
Jest in Practice: Matchers, Async Tests, Mocks, Snapshots and Coverage in CI
Hands-on Jest guide: matchers, async tests, mocks, React Testing Library, snapshots, coverage thresholds, runner architecture, and CI patterns.
-
Building Components in Isolation with Storybook: Stories, Args and Controls, Decorators, Docs and Tests
Component-driven development with Storybook: writing stories, component states, args and controls, decorators, addons, documentation, interaction testing and deployment.
-
Testing React Components Like a User: Queries, user-event, Async Tests, Context and Hooks
Testing React components with React Testing Library: choosing queries, simulating user events, async testing, forms, context providers, custom hooks, and accessibility checks.
-
Mocking APIs with MSW: Handlers for the Browser and Node Tests, Runtime Overrides and GraphQL
Mocking APIs at the network level with Mock Service Worker: defining handlers, browser and Node.js setup, using MSW in tests, runtime handler overrides, GraphQL, and an e-commerce example.
-
Vitest in Practice: Setup, Mocking Pitfalls, React Component Tests and Coverage
Set up Vitest in a Vite project, understand why vi.mock is hoisted and how vi.hoisted fixes it, keep mocks from leaking between tests, test React components with Testing Library, and run coverage in CI.
-
Jest Mocking in Depth: Module Mocks vs spyOn, Async Pitfalls, Snapshots and Test Isolation
Jest mocking, snapshot, and coverage reference: module mocks vs. spies, async pitfalls, test isolation, and threshold configuration.
-
Measuring C++ Code Coverage: gcov, lcov Reports, Google Test and CI Uploads
Measuring C++ code coverage and wiring it into CI: coverage types, gcov and lcov HTML reports, Google Test integration, Codecov uploads, and a comparison of tools.
-
Node.js Testing: Jest, Mocha, and Supertest
Test Node.js apps with Jest matchers and mocks, async tests, Supertest for Express APIs, MongoDB memory server, integration tests.
-
GoogleTest and gMock in Practice: ASSERT vs EXPECT, Fixtures, Mocks and CTest
GoogleTest for C++ with real output: fatal vs non-fatal assertions, fixture lifecycle, parameterized and death tests, gMock expectations, FetchContent and CTest.
-
C++ Benchmarking: steady_clock, Warmup, Statistics and Google Benchmark
Benchmark C++ code without fooling yourself: steady_clock, dead-code elimination, setup outside the timer, median and p95 over mean, and Google Benchmark usage.