HTHyperTransformer AI

Study cards › Testing

TestingInterview questions and answers

← Topics1 / 100
1 / 100 viewed
Question

What is Jest?

Answer

Jest is the most popular JavaScript test runner — comes bundled with an assertion library (expect), mocking, snapshot testing, parallel execution, and watch mode. Created by Facebook for React but used across the JS ecosystem. Zero-config for most projects.

Question

What is React Testing Library?

Answer

React Testing Library is a testing tool that encourages tests mimicking real user behavior — query by accessible roles, labels, and text content rather than internal class names or component state. Tests stay green through refactors that don't change behavior.

Question

Unit vs integration vs E2E?

Answer

Unit: tests one function or module in isolation. Integration: tests several units working together (often with a real DB). E2E: tests the full application through its real UI and network calls. Each level finds different bugs; a healthy suite has all three in different ratios.

Question

What is the test pyramid?

Answer

A classic guide: many fast unit tests at the base, fewer integration tests in the middle, very few slow E2E tests at the top. Optimizes for speed, stability, and maintainability. The pyramid keeps test runs short enough to actually run on every change.

Question

What is a test double?

Answer

Generic term for any stand-in for a real dependency in tests — includes fake, mock, stub, and spy. Test doubles let you isolate the code under test from slow, flaky, or hard-to-control collaborators like databases, APIs, and the clock.

Question

Mock vs stub vs spy?

Answer

Stub: returns canned values when called. Mock: a stub PLUS assertions on how it was called. Spy: wraps a real implementation and records call info without changing behavior. The terms overlap in everyday speech, but the distinction helps you think about what a test is really verifying.

Question

What is snapshot testing?

Answer

Captures the rendered output of a component or data structure to a file; future runs compare against the stored snapshot. Great for catching unintended changes in stable UI; risky for fast-changing components where stale snapshots get rubber-stamped. Use intentionally, review diffs carefully.

Question

What is Cypress?

Answer

An E2E testing tool that runs in a real browser with time-travel debugging, auto-waiting, network stubbing, and a visual test runner. Excellent developer experience — many teams pick it for the GUI alone. Limitation: single-tab, single-origin restrictions historically (loosening over time).

Question

Cypress vs Playwright?

Answer

Both run real browsers and have great DX. Playwright supports more browsers (Chromium, WebKit, Firefox), multiple tabs, multiple contexts, and parallel sharding more easily. Cypress has the famous time-travel UI and a simpler API. Either is a fine modern choice.

Question

What is Playwright?

Answer

Microsoft's cross-browser E2E framework — runs Chromium, WebKit, and Firefox; supports multiple tabs and contexts; has auto-waiting, network mocking, mobile emulation, and powerful selectors. Has overtaken Cypress in adoption for new projects given its broader browser and parallelization support.

Question

What is userEvent in testing?

Answer

@testing-library/user-event simulates real user interactions — typing, clicking, tabbing — more faithfully than the lower-level fireEvent. Triggers all the events a real user would (focus, keydown, input, etc.) instead of just one. Use userEvent for any interaction test.

Question

React Testing Library philosophy?

Answer

Test BEHAVIOR, not implementation. Query the DOM the way a user would (accessible roles, labels, visible text), simulate user actions, and assert on what the user sees. Tests written this way survive internal refactors and accidentally improve accessibility.

Question

What is a brittle test?

Answer

A test that breaks when you refactor without changing user-visible behavior. Caused by asserting on implementation details — internal state, CSS class names, component structure. Fix by testing observable outcomes instead of internals.

Question

What is a flaky test?

Answer

A test that passes and fails non-deterministically — same code, different result. Usually caused by timing issues, network dependencies, shared state, or order-dependence. Flaky tests train people to ignore failures. Quarantine and fix them immediately — don't just rerun.

Question

What is test isolation?

Answer

Every test runs independently — no shared state from previous tests. Achieved with beforeEach/afterEach hooks that set up and tear down. Without isolation, test order matters, debugging is a nightmare, and parallel runs fail mysteriously.

Question

What is the AAA pattern?

Answer

Arrange, Act, Assert — a common structure for tests. Arrange: set up state and dependencies. Act: invoke the function or interaction under test. Assert: verify the expected outcome. Keeps tests readable and focused on one behavior each.

Question

What is given/when/then?

Answer

A BDD-style alternative to AAA — Given (preconditions), When (action), Then (expected outcome). Often used in Gherkin/Cucumber scenarios. The intent is the same as AAA; just different vocabulary geared toward non-developer stakeholders.

Question

What is TDD?

Answer

Test-Driven Development: write a failing test first, write the minimum code to pass it, refactor without breaking it, repeat. Drives small steps and good design (testable code tends to be modular). Many teams claim to practice TDD but actually write tests after — both can work; the discipline matters.

Question

What is BDD?

Answer

Behavior-Driven Development extends TDD by writing tests in business-readable language (Gherkin's Given/When/Then), often via tools like Cucumber, SpecFlow, or Behave. The aim: tests double as living documentation that product owners and QA can read. Adoption varies; the value depends on team buy-in.

Question

What is test coverage?

Answer

The percentage of code executed by tests — lines, branches, functions, statements. A useful smell, not a goal. High coverage doesn't guarantee good tests (you can hit every line without asserting anything meaningful). Below ~60% is concerning; chasing 100% has diminishing returns.

Question

What is mutation testing?

Answer

Introduces small changes (mutants) into your source code and runs the tests; a 'killed' mutant means tests caught the change. Measures actual test effectiveness, unlike line coverage. Slow but extremely insightful — reveals where coverage exists but assertions are weak.

Question

What is integration testing?

Answer

Testing multiple units together, usually with real (or near-real) dependencies — a real DB (often in a container), real HTTP server, real cache. Catches the bugs that only appear when components interact. Slower than unit but much more confidence-building.

Question

What is API testing?

Answer

Sending HTTP requests to your API and asserting on responses (status, body, headers). Tools: supertest, REST-assured, Pytest + httpx, Postman/Newman. Catches contract bugs without spinning up the full UI. Often the sweet spot for confidence vs speed in backend testing.

Question

What is contract testing?

Answer

Verifies that the provider (API) and consumer (client) agree on the API's shape — using a tool like Pact. The consumer publishes expected interactions; the provider verifies it can satisfy them. Catches breaking changes between services without running both in a full integration test.

Question

What is load testing?

Answer

Simulating expected production traffic to verify the system meets performance requirements (p95 latency, throughput, error rate). Tools: k6 (modern, JS scripts), JMeter, Locust (Python), Gatling. Run before launches and as part of CI for critical services.

Question

What is stress testing?

Answer

Pushing the system past its expected limits to find the breaking point and observe how it degrades. Useful for capacity planning and ensuring graceful failures (you'd rather know how it dies than be surprised in production).

Question

What is spike testing?

Answer

Suddenly hitting the system with a huge burst of traffic to verify it survives and recovers. Important for systems that experience viral events, scheduled drops, or bot floods. Tests autoscaling, queue buffering, and rate-limit behavior under shock.

Question

What is soak testing?

Answer

Sustained load over hours or days to find slow degradations — memory leaks, file handle exhaustion, GC fragmentation, connection pool drift. Short tests miss these because the symptoms only show up after extended operation.

Question

What is profiling?

Answer

Measuring exactly where a program spends time or memory. Tools: Chrome DevTools (web), Node --inspect, py-spy (Python), async-profiler (JVM), pprof (Go). Profiling beats guessing — many 'obvious' bottlenecks turn out to be wrong when you actually measure.

Question

Why mock external APIs in tests?

Answer

Speed (no network), reliability (no flaky third parties), cost (no per-call billing), determinism (control the response), and safety (no real side effects). Use a fake server (msw, nock, WireMock) so the code under test still goes through its real HTTP layer.

Question

What is MSW?

Answer

Mock Service Worker — intercepts fetch/XHR/GraphQL requests in the browser or Node so your tests can stub network calls without changing the app code. Same handlers work in dev, tests, and Storybook. Often the cleanest way to mock APIs in a frontend test suite.

Question

How do you handle flaky tests?

Answer

Don't just retry — fix the root cause. Common causes: timing assumptions (replace sleeps with explicit waits for events), leftover state (improve isolation), real-time dependencies (fake the clock), or network calls (mock them). Quarantine repeat offenders in a separate suite and fix or delete.

Question

What is golden-file testing?

Answer

Compare the program's output to a stored 'golden' reference file. Update intentionally when the output should change. Common in compilers, CLI tools, code generators, and renderers. Like snapshot testing but for arbitrary outputs, not just UI.

Question

What is test parallelization?

Answer

Running tests across multiple processes or workers to cut total wall time. Requires test isolation — shared mutable state ruins parallel runs. Modern runners (Jest, Vitest, pytest-xdist) parallelize by default. Often the single biggest speed-up you can get on a slow suite.

Question

What is a fixture?

Answer

Pre-defined data or setup state used across tests — a stock test user, a sample order, a seeded database. Keep fixtures small and immutable; share construction via factories (factory-bot pattern) rather than literal data scattered everywhere.

Question

What is property-based testing?

Answer

Instead of writing specific examples, you describe properties that should always hold ('reverse twice equals identity') and the framework generates many random inputs to try to falsify them. Catches edge cases hand-written tests would miss. Tools: fast-check (JS), Hypothesis (Python), QuickCheck (Haskell).

Question

What is fuzzing?

Answer

Throwing random or malformed inputs at a system to find crashes, hangs, or security holes. Common in parsers, network protocols, and any code that processes untrusted bytes. Modern fuzzers (libFuzzer, AFL, Atheris) use coverage feedback to guide input mutation.

Question

What is a snapshot serializer?

Answer

Customizes how Jest renders objects in snapshots — useful for filtering volatile fields like timestamps, UUIDs, and DB IDs so the snapshot stays stable across runs. Prevents 'change one thing, churn a hundred snapshots' situations.

Question

How do you test useEffect?

Answer

Render the component with RTL; assert on observable side effects — DOM changes, mocked API calls, spies. Use findBy or waitFor for async updates. Don't try to test the effect callback itself directly — test that the visible behavior is correct.

Question

What is waitFor in RTL?

Answer

Polls an assertion until it passes or times out — bridges async updates without flaky setTimeout calls. Use it when you need to wait for an effect or a network response to settle. Pair with userEvent for realistic interaction-then-assert flows.

Question

findBy vs getBy vs queryBy?

Answer

getBy: synchronous, throws if not found (use when the element should be there now). queryBy: synchronous, returns null if missing (use to assert absence). findBy: async, waits up to a timeout (use after an action that triggers an update). Pick the right one — wrong choices cause flaky or slow tests.

Question

How do you test a custom hook?

Answer

Use @testing-library/react's renderHook — it renders the hook inside a host component and exposes the return value. Call rerender to test prop changes, act() for state updates, and unmount to test cleanup. The cleanest way to test reusable hook logic.

Question

How do you test Redux logic?

Answer

Reducers are pure functions — test them directly with (state, action) inputs. Thunks/sagas: test with a mock store or by calling them with mocked dependencies. Selectors: test with sample state. Connected components: render with a Provider and test the integration.

Question

End-to-end vs system tests?

Answer

E2E specifically means 'through the UI like a user.' System tests can be any tests that span the full app — including API-level tests that bypass the UI. E2E is a subset of system testing. Use E2E sparingly (slow, flaky) and lean on API-level system tests for breadth.

Question

Why not aim for 100% coverage?

Answer

Diminishing returns. Logic-rich code deserves heavy coverage; trivial getters, configuration objects, and generated code rarely benefit. Forcing 100% pushes teams to write low-value tests for low-risk code. Aim for high coverage of the important paths and accept gaps elsewhere.

Question

What are test data builders?

Answer

Helper factories that produce realistic test objects with sensible defaults and easy overrides — like buildUser({ role: 'admin' }). Keeps tests readable and resistant to schema changes (add a required field, update one builder, not every test). Pattern names: factory-bot, fixture factory.

Question

How do you isolate database state in tests?

Answer

Run each test inside a transaction and roll back at the end (Rails, Spring, Django all support this); or use a fresh schema per parallel worker; or truncate tables between tests. The right approach depends on the framework and whether your test code uses its own transactions.

Question

What is an in-memory DB for tests?

Answer

SQLite or pg-mem instead of spinning up real Postgres for unit tests — much faster. Caution: behavior can differ from production (different SQL dialects, no actual MVCC, no proper transactions in some cases). Fine for many tests; for prod-like guarantees, use testcontainers.

Question

What is Testcontainers?

Answer

A library that spins ephemeral Docker containers (Postgres, Redis, Kafka, anything) for integration tests, then tears them down. Real production-like dependencies with automatic cleanup. Available for Java, Node, Go, Python, .NET. Standard tool for serious backend integration testing.

Question

Consumer-driven contract testing?

Answer

The consumer (client) defines what it expects from the provider (server); the provider must verify it can satisfy those expectations. Tool: Pact. Lets services be developed and deployed independently without integration tests for every combination.

Question

What is a smoke test?

Answer

A quick post-deploy sanity check that the app boots and the key flows work — login, load homepage, hit health endpoint. Catches obvious breakage in seconds. Run after every deploy before considering the rollout successful.

Question

What is a regression test?

Answer

A test added when you fix a bug, to ensure the bug never silently returns. Every important bug fix should ship with a regression test. Over time these accumulate into a safety net that protects historical fixes from being undone.

Question

What is acceptance testing?

Answer

Tests verifying the feature meets the customer's or PM's acceptance criteria — often E2E, often written in Gherkin so stakeholders can read them. Bridges 'the feature works' (developer tests) and 'the feature is right' (business validation).

Question

What is a performance budget?

Answer

Hard limits on key metrics — JS bundle size under 200KB, API p95 under 300ms, LCP under 2.5s — enforced in CI. Fail the build when budgets are exceeded. Prevents the slow drift that turns fast apps into slow ones over years of small additions.

Question

What is Lighthouse?

Answer

Google's automated tool auditing web pages for performance, accessibility, SEO, and best practices. Run in DevTools, on the command line, or in CI (Lighthouse CI). Excellent for setting and enforcing performance budgets.

Question

How do you test accessibility?

Answer

Automated checks with axe-core (jest-axe, @axe-core/playwright) catch ~30-50% of issues — missing labels, contrast, ARIA misuse. The rest requires manual testing: keyboard navigation, screen reader, zoom, color blindness. Both layers needed; automation alone misses real bugs.

Question

What is screen reader testing?

Answer

Manually verifying that screen readers (VoiceOver, NVDA, JAWS) can navigate the app and announce content meaningfully — landmarks, headings, labels, focus order, live regions. Often surfaces UX issues sighted developers don't notice (mystery icons, focus traps).

Question

Why test edge cases first?

Answer

Edge cases drive error handling and reveal flawed assumptions in your API design. The happy path tends to work without any test help; bugs hide at boundaries — empty inputs, max values, special characters, network failures, concurrent requests. Lead with edges, not the obvious case.

Question

What is a deterministic test?

Answer

A test whose output depends only on its inputs — no random values, no real time, no real network. Same inputs always give same result. Inject Date.now(), random sources, and network calls so tests can control them. Determinism is the foundation of trustworthy tests.

Question

What is faking time in tests?

Answer

Replacing real Date/timers with controllable fakes (jest.useFakeTimers, vi.useFakeTimers, sinon.useFakeTimers). Lets you 'advance time' to test scheduled behavior without sleeping. Essential for testing debounce, throttle, timeouts, and time-of-day logic.

Question

What is a mock function?

Answer

A function created by the test framework that records calls (args, return values, call count) and returns whatever you tell it to. Lets you assert on behavior — 'did the code call sendEmail with these args?' — without invoking the real implementation.

Question

What is a parameterized test?

Answer

Running the same test logic over many input rows: test.each([1,2,3])('doubles %i', x => …). Jest, JUnit, pytest all support it. Way better than copy-pasting tests for each input — change the logic once, all variants update.

Question

How do you test error paths?

Answer

Make the dependency throw or reject, then assert on how your code handles it — correct status code, fallback behavior, logged error, no half-applied state. Many bugs hide in error paths because they're rarely exercised in dev; testing them is high-leverage.

Question

What is supertest?

Answer

A Node library that wraps your Express/Nest/Fastify app and makes HTTP calls IN-PROCESS — no port binding, no flaky network. Very fast API tests with a chainable assertion API. The de facto standard for testing Node HTTP APIs.

Question

What does jest --watch do?

Answer

Re-runs tests related to changed files on every save, with interactive controls (run all, run failed, filter by pattern). Tightens the dev feedback loop dramatically — perfect for TDD or quick iteration.

Question

What's in a coverage report?

Answer

Per-file statistics on executed lines, branches, statements, and functions — usually as HTML you can browse and a JSON for tooling. Helps identify untested logic, but don't over-index on the number. Coverage tells you what's NOT tested; it doesn't tell you what IS tested well.

Question

What is test pollution?

Answer

When tests pass or fail depending on the order they ran in — caused by shared mutable state, global variables, or leftover side effects from a previous test. Fix by improving isolation: beforeEach setup, careful teardown, no globals.

Question

What is k6?

Answer

A modern load-testing tool from Grafana — JS scripts, CLI runner, cloud option, performance assertions built in. Replaces JMeter in many shops. Easier to write and version-control than GUI-driven tools, and CI-friendly.

Question

What is JMeter?

Answer

An older but mature Java-based load tester with a GUI and protocol support (HTTP, JDBC, JMS, AMQP). Feature-rich but verbose to maintain. Still used heavily in enterprise; new projects often prefer k6 or Locust for code-first scripts.

Question

Hits per second vs concurrent users?

Answer

Hits/sec measures throughput. Concurrent users measures simultaneously active sessions (some idle, some active). Both matter but tell different stories — 1000 active users at low rate is very different from 100 users hammering as fast as they can. Model the workload realistically.

Question

What's a latency percentile?

Answer

Rank-based latency: p50 (median — half of users are slower than this), p95 (95% of users get faster than this), p99 (the slow tail). Averages hide problems; percentiles surface them. Tail percentiles (p99, p99.9) drive UX and capacity decisions.

Question

What is throughput?

Answer

Number of operations completed per second under load. Throughput and latency interact — a system saturated at its max throughput sees latency climb. The classic capacity question: 'at what request rate does p95 latency exceed our budget?'

Question

What is a benchmark?

Answer

Repeated, isolated measurement of a unit's performance. Micro-benchmarks measure tiny functions; macro-benchmarks measure full flows. Use proper libraries (benchmark.js, JMH for Java) that handle warmup, GC, and statistical noise — naive benchmarks usually measure the wrong thing.

Question

Why isolate micro-benchmarks?

Answer

Warmup, JIT compilation, GC pauses, CPU caches, and OS noise can swamp tiny timings. Benchmarking frameworks loop many times, discard warmup runs, and report statistical confidence — without that, you're measuring noise, not your code.

Question

What is chaos testing?

Answer

Intentionally injecting failures (kill processes, drop network packets, add latency, fail dependencies) into a live system to verify resilience. Pioneered by Netflix's Chaos Monkey. Mature programs include 'gameday' exercises where teams practice incident response on real outages.

Question

What is a performance regression?

Answer

A code change that slows the system or increases resource usage without breaking functionality. Catch them via perf budgets in CI and trend dashboards in production. Without measurement, performance dies by a thousand small cuts no one notices individually.

Question

What is A/B testing?

Answer

Splitting users into variants (A vs B) to measure the impact of a change on a metric. Requires enough sample size and proper statistical analysis to be meaningful. Don't celebrate small differences early — random variation is real and noisy.

Question

What is canary analysis?

Answer

Comparing key metrics (error rate, latency, conversion) between a canary deployment (small % of traffic) and the baseline. If canary metrics are worse, auto-rollback. Used by mature CD pipelines to safely ship many changes per day.

Question

What is feature toggling for tests?

Answer

Wrapping new code paths in flags so tests can flip them on/off independently of deploy. Lets you ship code dark and validate it in production without exposing users. Pairs with A/B tests and canary releases for safe rollout.

Question

Why don't tests guarantee correctness?

Answer

Tests only verify what you wrote tests for. Untested edge cases, integration scenarios, environment differences, and races can still fail. Layer types/linting, code review, observability, gradual rollouts on top — defense in depth applies to quality too.

Question

Mocking vs faking?

Answer

Mock: verifies HOW something was called (record + assert calls). Fake: a working but simplified implementation (in-memory DB, fake clock, in-process queue). Fakes are more behavioral and tend to scale better in maintenance; mocks can become rigid if overused.

Question

How do you test side effects?

Answer

Inject the dependency (logger, mailer, payment client) instead of importing it directly, then pass mocks or fakes in tests and assert they were called as expected. Avoid global singletons — they make side-effect testing painful and brittle.

Question

What is test maintainability?

Answer

How easily tests survive refactors. Improved by testing behavior (not internals), sharing setup helpers, using readable assertions, and avoiding tight coupling to implementation. Unmaintainable test suites get rewritten or deleted — both terrible outcomes.

Question

How long should a unit test take?

Answer

Milliseconds. Slow unit tests undermine the feedback loop and people stop running them. Integration tests can be a few hundred ms; E2E might be seconds. If unit tests creep into seconds, you've probably added I/O — pull it out behind a fake.

Question

What's a flaky-test triage policy?

Answer

Quarantine the flake immediately so the suite stays green, file a bug, fix within a defined window (e.g. one week), or delete the test. Don't let flakes accumulate — they train teams to ignore failures, and ignored failures eventually include real bugs.

Question

API response schema validation in tests?

Answer

Assert the response matches a schema (Zod, JSON Schema, Pydantic). Catches accidental shape drift cheaply — adding a field is fine, removing or renaming is not. Often the easiest way to detect contract regressions in API tests.

Question

End-to-end test data strategy?

Answer

Seed minimal known data per test (or per suite) via API or DB setup, run the test, clean up afterward. Avoid shared 'forever' test data that everyone reads and a single test mutates — that's a flake factory and a debugging nightmare.

Question

What is visual regression testing?

Answer

Compare screenshots across builds to catch unintended UI shifts (alignment, colors, fonts). Tools: Percy, Chromatic, Playwright's toHaveScreenshot. Especially valuable for design-system libraries where small CSS changes can cascade widely.

Question

What is shift-left testing?

Answer

Run tests earlier in the lifecycle — in the IDE, pre-commit, on PR — instead of waiting for QA at the end. Catches issues when they're cheap to fix and gives developers fast feedback. The opposite of 'throw it over the wall to QA'.

Question

Profiling a React app?

Answer

Use React DevTools Profiler to record a session and see which components rendered, how long each took, and why. Reveals unnecessary re-renders and slow components. Pair with browser performance profiling for full-stack insight.

Question

What does Jest --bail do?

Answer

Stops the test run after the first failure (or N failures with --bail=N). Useful in CI for fast feedback — no need to wait 10 more minutes after the first failure. Locally, you usually want all failures at once.

Question

How do you test environment variables?

Answer

Set them in your test setup (process.env.X = …) and restore the original after the test or suite. For Vite/Next/etc., use the framework's env loader. Don't rely on real env files in unit tests — they shouldn't depend on dev secrets.

Question

What is monkey-patching in tests?

Answer

Replacing a module's exports at runtime to control behavior — Jest's jest.spyOn or sinon.replace. Use sparingly; it's a sign the code should accept the dependency by injection instead. Monkey-patching framework internals is especially fragile.

Question

How do you test a WebSocket?

Answer

Stand up a fake WebSocket server (ws library in tests), or use Playwright's WebSocket interception. Drive deterministic scenarios — send specific messages and assert client behavior. Avoid relying on the real WS server in tests; flakiness will haunt you.

Question

How do you test useEffect cleanup?

Answer

Render the component, then unmount it and assert the cleanup happened (event listener removed, timer cleared, AbortController aborted, subscription released). Common bugs hide in cleanup; tests for them are cheap to write and high-value.

Question

What is the testing trophy?

Answer

Kent C. Dodds' alternative to the pyramid: heavy integration tests, lighter unit and E2E, plus static analysis as the foundation. Suits modern frontend apps where most logic is composed UI components — integration tests via RTL are unusually high-leverage.

Question

When should you write E2E tests?

Answer

Critical user flows only — signup, login, checkout, key feature. Few but reliable. Don't test obscure details with E2E — they're slow, expensive, and flaky. Use unit/integration for breadth and E2E for the irreplaceable end-to-end confidence on important paths.

Question

What is contract-first API testing?

Answer

Define the API spec (OpenAPI) up front, generate client and server stubs, and verify both sides against the spec in CI. The spec is the source of truth — drift between code and spec is detected automatically. Pairs nicely with consumer-driven contract tests.

Question

What is shadow testing?

Answer

Send production traffic to a new version of a service in parallel (without exposing its responses to users) and compare for correctness and performance. Tests new code under real load before flipping the switch. Common in payment, search, and pricing rewrites.

Question

What is a test report?

Answer

Structured CI output (JUnit XML, HTML reports, JSON) showing pass/fail/skipped, duration, and often coverage. Lets dashboards track quality over time, attribute failures to owners, and identify slow tests. Every CI system understands JUnit XML — emit it from your test runner.

Practise Testing in the app
Track your progress, flag tricky cards and write your own answers.

Open in the app

More topics: React & Frontend JavaScript & TypeScript Backend Engineering Databases System Design AI & Agentic AI DevOps & Cloud Security DSA Coding Problems (Python)