Skip to content

Blog

Notes on test coverage that runs

Runtime test coverage, test impact analysis, change impact analysis and regression testing, from the team that builds CoverOps.

  1. · 5 min read

    Parallel functional tests and per-test coverage: what stays exact, what is shared

    Functional suites run in parallel to fit into CI, and every parallel test hits the same long-running services. Line counters cannot say which of two simultaneous requests ran a line. Here is what CoverOps keeps exact anyway, what it shares and labels, how each agent draws the line, and how to keep the shared part small.

    #parallel testing#per-test coverage#code coverage#test impact analysis#microservices

  2. · 6 min read

    Changed-code coverage as a merge gate when a change spans services

    Diff coverage from one repository's unit tests cannot see that the new lines in the inventory consumer only run when an end-to-end test places an order. Here is how to gate a merge on the changed lines your functional tests actually ran, in every service, and how to keep a service that did not run from quietly passing the gate.

    #quality gate#diff coverage#changed code#microservices#pull request

  3. · 6 min read

    Is every replica reporting? Monitoring coverage agents across a fleet

    A coverage number is only as complete as the processes behind it. When a service runs as five pods in two environments, you need to see that all five are reporting before you trust the run. Here is how the CoverOps live fleet shows every replica, how replicas merge in a run, and what to check after a rollout.

    #coverage agents#kubernetes#replicas#code coverage#staging

  4. · 6 min read

    Which test touched which service? Per-test coverage across microservices

    A coverage number per service tells you what the suite ran. It does not tell you what one test ran. Here is what a per-test footprint across microservices contains, where you read it, which parts are always exact, and what it is good for: failure diagnosis, test selection and finding the test that should exist.

    #per-test coverage#microservices#test traceability#code coverage#functional testing

  5. · 6 min read

    How services see each other: a service map built from test traffic

    An architecture diagram shows what the team believes. A service map drawn from the traces your tests cause shows which services actually called which, how much of each one's code ran, and where a request's chain stopped. Here is how CoverOps builds it and how to read it after the first run.

    #service map#microservices#distributed tracing#code coverage#functional testing

  6. · 5 min read

    RabbitMQ and other message queues: keeping test context across async hops

    Every asynchronous hop is a place where a functional test loses track of the code it caused. Here is how CoverOps carries the test context through RabbitMQ without code on the JVM, how to carry it through a raw consumer or a transport the agent does not know, and which async work stays outside per-test coverage.

    #rabbitmq#message queues#test coverage#async#microservices#tracing

  7. · 5 min read

    Following a test through Kafka: coverage for producers and consumers

    A test publishes an order; a consumer in another service handles the event a moment later, on another thread. Here is how CoverOps files the consumer's code under the test that produced the record, what the Java agent does without code, what needs a few lines, and where the trail stops.

    #kafka#test coverage#code coverage#consumers#microservices#tracing

  8. · 5 min read

    One coverage view for services in Java, .NET, Node.js, Python, Go and PHP

    Every language has its own coverage tool and its own report format, so a system built in six languages ends up with six numbers nobody can add up. Here is how CoverOps measures services in Java, .NET, Node.js, Python, Go and PHP into one run, follows one test across all of them, and where the languages still differ.

    #code coverage#polyglot#microservices#java#go#node.js#python#.net#php

  9. · 5 min read

    Real-time code coverage: watching a test run while it happens

    Coverage reports usually arrive after the suite is done, which is when a missing agent or an untraced service is most expensive to find. Here is what CoverOps shows while a run is still going: a live trace feed, a live mark per service, test counts as they change, and every replica that is reporting.

    #real-time code coverage#live coverage#test runs#tracing#microservices

  10. · 6 min read

    Functional test coverage in distributed systems: what to measure and how

    A functional test in a distributed system runs code in many services, in several languages, sometimes behind Kafka or RabbitMQ. This guide sets out the five numbers worth measuring, where each one breaks, and how CoverOps collects them in one run while the tests are still going.

    #functional testing#code coverage#microservices#distributed systems#test context

See which tests reach your own code

We connect one of your services in a demo and show what your tests executed, and what they never reached.