X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=blobdiff_plain;f=src%2Ftestutils%2Finclude%2Ftestutils%2Frefdata.h;fp=src%2Ftestutils%2Finclude%2Ftestutils%2Frefdata.h;h=f3ae67b578582e1e243bb3cd10c5f96d39c27c0f;hp=e57b96769004ef258f462cf4360ea3d2785015c2;hb=4ab77f8b8162e37a89f7bdbd89709528326d7c26;hpb=977d0e553d447c3a373c4dee62225922364fae27 diff --git a/src/testutils/include/testutils/refdata.h b/src/testutils/include/testutils/refdata.h index e57b967690..f3ae67b578 100644 --- a/src/testutils/include/testutils/refdata.h +++ b/src/testutils/include/testutils/refdata.h @@ -40,6 +40,7 @@ * See \ref page_refdata for more details. * * \author Teemu Murtola + * \author Mark Abraham * \inlibraryapi * \ingroup module_testutils */ @@ -195,6 +196,17 @@ public: * Initializes the reference data in the global mode. */ TestReferenceData(); + /*! \brief Initializes the reference data in the global mode while + * providing the test name. + * + * Providing a name for the test, rather than using the default + * name generated by GoogleTest, is useful when many tests should + * share common reference data because e.g. they are + * value-parameterized over multiple equivalent implementations or + * run modes. The name should include a filename suffix + * e.g. `.xml` and refers to a file that will be found in the + * `refdata` subdirectory for the test case. */ + explicit TestReferenceData(std::string testNameOverride); /*! \brief * Initializes the reference data in a specific mode. *