Last active
December 13, 2015 22:09
-
-
Save shroukkhan/4982718 to your computer and use it in GitHub Desktop.
boost test template eclipse ( test fixture )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${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