Report tests as failed if Memory Leak is detected

Open
#308 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
testing-qa

Research direction

Start with the --detect_memory_leaks parameter documentation and inspect how its result is handled relative to main's return status. The change is done when a detected memory leak makes the Boost.Test suite return failure, including for post-build or CI use.

Written by the indexing model from the issue text.

Description

Currently using --detect_memory_leaks param I can get a Memory Leak report as shown here

However, even if there have been memory leaks, the overall test suite status (returned from main) is success.

What I'd really need is that the Boost.Test machinery returns a failure from main when a memory leak is detected, so that the test suite is considered failed. This is for running unit-tests as a post-build event or under CI.

Is that possible using Boost.Test?

Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/test

All issues in boostorg/test

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.