Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] CDT Test Runner for CppUTest

Hi Steven

 

It's been a while since I worked with the test runner, but I think what you are looking for is the extension point org.eclipse.cdt.testrunner.TestsRunner. In the plugin.xml of your project add this extension. You can find examples of its usage in the other implementations for boost, gtest and qttest. This should make it.

 

- Thomas

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steven Mak
Sent: Freitag, 1. März 2013 05:41
To: Marc-Andre Laperle; CDT General developers list.
Subject: Re: [cdt-dev] CDT Test Runner for CppUTest

 

Hi Marc-Andre,

 

Thank you for your answers. During the time waiting for reply, I have actually written the code that runs CppUTest with this test runner.

 

Related to hosting this project outside CDT codebase, I now have some further questions on packaging and installation if they are hosted outside CDT codebase.

 

I am aware that it would require a change in feature.xml in org.eclipse.cdt.testsrunner.feature package so that users can see "CppUTest Runner" in the drop down menu inside C/C++ Test runner in "Run Configurations..."

 

If CppUTest runner is hosted outside CDT codebase, can you give me some idea how I can update this xml file when a user choose to install this test runner?

 

Or shall include the entire cdt testrunner plugin for users to download and install and replace their existing CDT test runner?

 

Thanks,

Steven

 


From: Marc-Andre Laperle <malaperle@xxxxxxxxx>
To: Steven Mak <
tcmak@xxxxxxxxx>; CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Sent: Friday, March 1, 2013 10:33 AM
Subject: Re: [cdt-dev] CDT Test Runner for CppUTest


Hi Steven,

There is no plan to support CppUTest at this moment. It should be possible to implement this test runner as a plug-in that extends the CDT Unit Testing Framework. Given the relatively low popularity of CppUTest, perhaps it would be best to host this project outside of the CDT code base for now.

Here's a page to help you getting started:
http://wiki.eclipse.org/Getting_started_with_CDT_development

In addition to the projects listed there, you should import those projects:
org.eclipse.cdt.testsrunner
org.eclipse.cdt.testsrunner.boost
org.eclipse.cdt.testsrunner.gtest
org.eclipse.cdt.testsrunner.qttest
org.eclipse.cdt.testsrunner.test

Hope this helps!

Marc-Andre

On 02/21/2013 05:28 AM, Steven Mak wrote:
> Hi CDT team,
>
> Do you have any plan for supporting CppUTest (
www.cpputest.org) as one of the test runners?
>
> Or can I know where to look at in terms of contributing code on this?
>
> Thanks,
> Steven
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top