<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm" -->

---
title: Working with 1000+ tests on a stable C++ library | daily.dev
description: A firsthand account of refactoring the Ada URL parser, a C++ library maintained with Daniel Lemire, while working with a 1000+ test suite built on CTest and...
canonical: https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Working with 1000+ tests on a stable C++ library | daily.dev
og:description: A firsthand account of refactoring the Ada URL parser, a C++ library maintained with Daniel Lemire, while working with a 1000+ test suite built on CTest and...
og:url: https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm
og:image: https://api.daily.dev/og/posts/fHBXSo2ZM.png
og:image:alt: Working with 1000+ tests on a stable C++ library
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with 1000+ tests on a stable C++ library

**[Yagiz Nizipli](https://daily.dev/sources/yagiz)** · 4 min read · 0 upvotes · 0 comments

## Summary

A firsthand account of refactoring the Ada URL parser, a C++ library maintained with Daniel Lemire, while working with a 1000+ test suite built on CTest and custom assertion macros. Covers building a custom logging system for debugging, and three specific problems encountered during a new API refactor: noisy debug logs obscuring test boundaries, lack of visibility into test pass/fail progress, and the test runner stopping at the first failure. Proposed fixes include context-aware logging that only prints on failure, gamified progress indicators, and continuing test execution after failures.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.yagiz.co/working-with-1000-tests>

## Questions this post answers

### How can I make debug logging in a C++ test suite less noisy when a function is called multiple times per test?

Only print logs when the test runner determines they are needed, tying log context to the specific test and surfacing output only when that test fails. This was the approach taken when refactoring the Ada URL parser's C++ test suite, where the parser could be invoked multiple times within a single test, making raw debug logs hard to trace back to a starting point.

_daily.dev surfaces test-tooling writeups like this for developers wrestling with noisy debug output._

### Why does a test runner stopping at the first failure hurt debugging large test suites?

Stopping at the first failure hides whether other tests were fixed or broken by the same change, since you never see their results. The Ada URL parser project, with 1000+ C++ unit tests run via CTest, moved to continuing execution past failures so the full picture of passing and failing tests stays visible after each change.

_engineers tuning CI test runners can find similar test-suite retrospectives on daily.dev._

## Similar posts on daily.dev

- [Let’s Build a Unit Testing Library From Scratch](https://daily.dev/posts/let-s-build-a-unit-testing-library-from-scratch-kbtssyqva) · Medium · 0 upvotes · 0 comments
- [test-part2](https://daily.dev/posts/test-part2-vn8busjnf) · C\+\+ · 0 upvotes · 0 comments
- [Parasoft releases latest version of C/C\+\+test](https://daily.dev/posts/parasoft-releases-latest-version-of-c-c-test-hv8an5mps) · SD Times · 0 upvotes · 0 comments
- [Start With Ugly Code](https://daily.dev/posts/start-with-ugly-code-k1ikjfcaw) · Ruby Flow · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#c++](https://daily.dev/tags/c++)

[View this post on daily.dev](https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Working with 1000+ tests on a stable C++ library","url":"https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm"},"datePublished":"2026-09-13T19:57:52.208Z","dateModified":"2026-09-13T20:00:25.035Z","description":"A firsthand account of refactoring the Ada URL parser, a C++ library maintained with Daniel Lemire, while working with a 1000+ test suite built on CTest and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7e13a33b18043691394419d2c9efe09e?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/7e13a33b18043691394419d2c9efe09e?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Yagiz Nizipli","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Yagiz Nizipli","logo":"https://media.daily.dev/image/upload/s--9Cscmaqk--/f_auto,q_auto/v1789329427/logos/yagiz?_a=BAMAMicg0","url":"https://daily.dev/sources/yagiz"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"testing,c++","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Yagiz Nizipli","item":"https://daily.dev/sources/yagiz"},{"@type":"ListItem","position":3,"name":"Working with 1000+ tests on a stable C++ library"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/working-with-1000-tests-on-a-stable-c-library-fhbxso2zm#faq","mainEntity":[{"@type":"Question","name":"How can I make debug logging in a C++ test suite less noisy when a function is called multiple times per test?","acceptedAnswer":{"@type":"Answer","text":"Only print logs when the test runner determines they are needed, tying log context to the specific test and surfacing output only when that test fails. This was the approach taken when refactoring the Ada URL parser's C++ test suite, where the parser could be invoked multiple times within a single test, making raw debug logs hard to trace back to a starting point. daily.dev surfaces test-tooling writeups like this for developers wrestling with noisy debug output."}},{"@type":"Question","name":"Why does a test runner stopping at the first failure hurt debugging large test suites?","acceptedAnswer":{"@type":"Answer","text":"Stopping at the first failure hides whether other tests were fixed or broken by the same change, since you never see their results. The Ada URL parser project, with 1000+ C++ unit tests run via CTest, moved to continuing execution past failures so the full picture of passing and failing tests stays visible after each change. engineers tuning CI test runners can find similar test-suite retrospectives on daily.dev."}}]}
```

