[cfe-dev] unit tests for Clang TDD

Nico Weber thakis at chromium.org
Sat Oct 15 10:29:32 PDT 2011


Hi David,

clang uses gtest, see the unittests/ folder. But the integration-level
test approach of the tests in test/ are preferred if possible.

Nico

On Sat, Oct 15, 2011 at 12:34 AM, David Kristola <kristol1 at illinois.edu> wrote:
> I am working on some new static analysis capabilities for a class
> project (new for C/C++, derived from an existing Java tool).  While
> making a contribution to the Clang code base isn't required for the
> class, it is a goal.
>
> Now that I have a copy of LLVM and Clang source code downloaded,
> compiled, and the regression test suite running, i am looking at how to
> set up my own tests.  When the documentation used the term "regression"
> for the test suite, it was accurate.  The test suite is a nice
> integration-level set of tests.
>
> But what about unit-level tests?  Did i miss something in the
> documentation or directory tree?  Is there a preferred unit test
> framework?  I don't want to start coding until i have a failing unit
> test in place.
>
> Thank you for your time,
> David Kristola
>
> --
> --djk, keeper of arcane lore&  trivial fluff
> This missive uses 100% recycled electrons.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>




More information about the cfe-dev mailing list