<div dir="ltr"><div dir="ltr">On Mon, Oct 28, 2019 at 10:15 AM Javed Shakeel <<a href="mailto:javed.shakeel%2Bcdash@aptportfolio.com">javed.shakeel+cdash@aptportfolio.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Hello everyone!<div>  I intend to use cdash to view and monitor coverage of our code base, which is mainly C++. I think I can divide the files in the following broad categories:</div><div>1) Files with zero coverage since they are not tested with an existing unit test.</div><div>2) Files with higher (> 80%) coverage</div><div>3) Files with lower (< 80%) coverage</div><div>4) Files with lower (< 80%) coverage but which are third party generated code which we do not intend to cover in our unit tests.</div><div><br></div><div>I would like to assign different labels to each of the above categories and generate alerts for only for (2) & (3) but at different threshold levels.</div><div><br></div><div>I have gone through <a href="https://blog.kitware.com/cdash-all-at-once-subproject-builds/" target="_blank">https://blog.kitware.com/cdash-all-at- once-subproject-builds/</a></div><div>but dont think it would allow me to implement what I intend to.</div><div><br></div><div>I would like to elicit suggestions on how to achieve this.</div></div></div></div></blockquote><div><br></div><div>You should be able to achieve what you're trying to do if you're okay with using subprojects. Here's how it would work:</div><div><br></div><div><br></div><div>1) Set up subprojects for different sections of your code as described in the blog post you linked to.</div><div><br></div><div>2) Create groups of subprojects for each different coverage threshold you'd like to support. Our default example for subproject groups is "Production", "Experimental", and "Third Party".</div><div><br></div><div>3) Set different coverage thresholds for each subproject group.</div></div></div>