T O P I C R E V I E W |
kolobog007 |
Posted - Sep 10 2010 : 2:43:47 PM I'm using boost.test. And my typical coding steps are: 1) Create test code 2) Build(boost.test will run test after building) 3) Fix errors and again to 1) Something like TDD. In this case i'm writing classes interface in test module and then implement, often using refactoring Create from usage to all non existing methods and then looking to boost.test log.
But boost.test just run program, catch all exception and output exception message to log. It looks like simple compile error. But ithout debugging i cant understand where is exception occured. And it's realy annoying.
For example what i can see in error list in VS2008. quote: Error 1 fatal error in "read_data_without_defaults": std::exception: The method or operation is not implemented. unknown location dataparser_test
And another example when i'm using BOOST_THROW_EXCEPTION instead simple throw
quote: Error 1 fatal error in "class SDFFieldDesc &__thiscall SDFRecord::getField(int)": std::exception: The method or operation is not implemented. c:\\users\\john\\documents\\visual studio 2008\\projects\\dataparser\\dataparser\\sdfrecord.h 46 dataparser_test
I can understand where i forgot about implementation, and double click error to open line with this problem.
How can i change default implementation code to my? |
1 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Sep 13 2010 : 1:40:51 PM To change default implementation
1. click on VA Options -> Advanced -> Suggestions -> Edit VA Snippets (button) 2. edit the snippet for "Refactor Create From Usage Method Body" |
|
|