Pre-release of GreenPepper for C++ is available!

We are proud to announce that a pre-release of GreenPepper for C++ developers is available! This release supports both Atlassian Confluence and XWiki wikis.

So C++ comes today to enhance the existing list of software development platforms supported by GreenPepper (Java, PHP, .NET, Ruby). This pre-release has been developped in 2 months in C++ using full test-driven approach thanks to the GoogleTest framework.

Compiled langages (like C++) are pretty challenging regarding the lack of mechanism like runtime type informations (or reflection). Our team took the challenge and got inspired by the same solutions as those retained by Google.

Our team hid complexity as much as possible, to allow GreenPepper C++ users to program with a simple source code (hum… although “simple” with C++ does not mean the same with other langages ;-) )

Want to see what a fixture source code looks like? Below a C++ header file sample :

CalculatorFixture.h

using namespace greenpepper;
using namespace type;

CLASS_FIXTURE_BEGIN(CalculatorFixture)

public:

CalculatorFixture(void);
IntegerType a;
IntegerType b;
void setA(IntegerType a);
void setB(IntegerType b);
IntegerType getA();
IntegerType getB();
IntegerType sum();

REGISTER_METHODS_BEGIN()
REGISTER_PROCEDURE_1(setA, IntegerType)
REGISTER_PROCEDURE_1(setB, IntegerType)
REGISTER_METHOD_0(getA, IntegerType)
REGISTER_METHOD_0(getB, IntegerType)
REGISTER_METHOD_0(sum, IntegerType)
REGISTER_METHODS_END()

CLASS_FIXTURE_END(CalculatorFixture)

If you want to start using executable specifications within you C++ projects, just tell us! Please contact us at grenoble@greenpeppersoftware.com. Download the package here.

Kind regards.

1 comment to Pre-release of GreenPepper for C++ is available!

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>