Skip to content

Instantly share code, notes, and snippets.

@shroukkhan
Last active December 13, 2015 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shroukkhan/4982718 to your computer and use it in GitHub Desktop.
Save shroukkhan/4982718 to your computer and use it in GitHub Desktop.
boost test template eclipse ( test fixture )
${filecomment}
${includes}
#include <boost/test/unit_test.hpp>
using namespace std;
${namespace_begin}
${declarations}
struct ${file_name}Fixture {
${file_name}Fixture() {
//nothing to setup
}
~ ${file_name}Fixture() {
// nothing to teardown
}
};
BOOST_FIXTURE_TEST_SUITE( ${file_name}_test , ${file_name}Fixture)
BOOST_AUTO_TEST_CASE( a_test ) {
${file_name}Fixture f;
BOOST_CHECK( 2 == 1 );
}
BOOST_AUTO_TEST_SUITE_END()
${namespace_end}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment