Hi All
I attended Phil's session on Catch at ACCU a couple of weeks ago and got quite excited about using Catch on our current project.
We currently use a single header framework, so Catch should just drop in. Our project is basically c++ built with a makefile, and the good news is that catch works quite happily when included and built in this way. However, I prefer to use Eclipse as an IDE and unfortunately Catch causes the code analyser in Eclipse to throw up a bunch of errors and warnings.
Invalid arguments 'Candidates are: enum Catch::ResultAction::Value acceptExpression(const Catch::ExpressionResultBuilder &, const Catch::AssertionInfo &)'
Method 'endExpression' could not be resolved
I get these everywhere I use a 'REQUIRE'.
'REQUIRE_THROWS_AS', etc. all seem to be OK.
I realise that this isn't directly an issue with the Catch code, but I was just wondering if anybody could help me to get it to work.
I would prefer not to disable errors and warnings (which doesn't seem to work properly in Eclipse anyway). I'm using Eclipse (Juno) with CDT (8.1.2) and the latest version of catch.hpp from builds.catch-lib.net (I've tried both integration and master builds).
Cheers,
Nige
I prefer to use Eclipse as an IDE and unfortunately Catch causes the code analyser in Eclipse to throw up a bunch of errors and warnings.
Invalid arguments 'Candidates are: enum Catch::ResultAction::Value acceptExpression(const Catch::ExpressionResultBuilder &, const Catch::AssertionInfo &)'
Method 'endExpression' could not be resolved
I get these everywhere I use a 'REQUIRE'.
TEST_CASE( "stupid/1=2", "Prove that one equals 2" )
{
int one = 2;
REQUIRE(one == 3);
}I got problems. Makefile and Eclipse build are OK, but Eclipse Indexer has problems: "Method 'endExpression' could not be resolved".
Using single_include/catch.hpp and tried everything.. Eclipse Indexer does not seem to work with this for some reason..
Will have to look for another Unit testsuite in the meantime :(
Jarda