1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| #define BOOST_TEST_MODULE "la thématique de ce fichier de test..."
#define BOOST_TEST_DYN_LINK
#include "HeaderTesté.hpp"
#ifdef DOXYGEN
#define BOOST_AUTO_TEST_CASE(f) void UT_##f()
#endif
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(Test1_sur_un_fichier_precis)
{
BOOST_REQUIRE_GT(boost::unit_test::framework::master_test_suite().argc, 1);
char const* filename = boost::unit_test::framework::master_test_suite().argv[1];
BOOST_REQUIRE(filename);
autres tests....
} |
Partager