Hi Mike,
Thanks a bunch! It worked just fine :). CppUnit sensor is now on the tested list!

~Julie

Mike Paulding wrote:

Hey Julie,

The CppUnit sensor is command-line based, so testing it is a little bit different than most of our sensors. In order to test it properly, the hackySensor_CppUnit module needs to be built (along with its dependent modules).

The hackySensor_CppUnit module has testing XML that is useful (and will save you the headache of installing and running the CppUnit software itself). The test file is called TrussCppUnitOutput.xml and resides in the hackySensor_CppUnit/src/org/hackystat/sensor/cppunit/testdataset/cppunittestfiles directory.

After the sensor.cppunit.jar file has been created, open a console and cd to the directory which has the jar file. Then invoke the following command (on Unix):

java -cp sensorshell.jar:sensor.cppunit.jar org.hackystat.sensor.cppunit.CppUnitSensor -xmlFile (pathtoxmlfile)/TrussCppUnitOutput.xml

In Windows, the command is:

java -cp "sensorshell.jar;sensor.cppunit.jar" org.hackystat.sensor.cppunit.CppUnitSensor -xmlFile (pathtoxmlfile)/TrussCppUnitOutput.xml

I assume you're sending the data to the testdataset account, so just check the sensor data links under the extras page for unit test data after invoking the sensor.

Good luck and please let me know if you run into any troubles.
Best regards,
Mike

Julie Ann Sakuda wrote:

As of 4:55 PM 11/19/2005 the following sensors are working after having been built with version 7:

Ant
Eclipse
Emacs
Emacs BufferTrans
JBlanket
JBuilder
Jira
Junit
Jupiter
Locc
Svn

===========
Sensors still in need of testing:
BCML
CLI
CCCC
CppUnit
CVS
LoadTest
Vim

Aaron's new additions have not been tested:
Checkstyle
Emma
FindBugs
Pmd
XmlSensorData

~Julie


Reply via email to