Test USD Authoring within doctest test suites.#

In C++ usdex::test uses the doctest testing framework. The utility classes and functions within this group use doctest commands in their implementations directly and as such are expected to be used within a running doctest context.

Classes#

usdex::test::ScopedDiagnosticChecker

A scoped class to capture and assert expected TfDiagnostics and TfErrorMarks for use in a doctest suite.

usdex::test::ScopedTmpDir

A scoped class for creating a temporary directory & tearing it down on destruction.

Functions#

bool usdex::test::compareIdentifiers(const std::string &first, const std::string &second)

Compare identifiers (such as those returned by SdfLayer::GetIdentifier() ).

Functions#

bool usdex::test::compareIdentifiers(
const std::string &first,
const std::string &second,
)#

Compare identifiers (such as those returned by SdfLayer::GetIdentifier()).

This function accounts for some platform specific behavior that occurs when resolving identifiers.