Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] JUnit Checker

Hi,

I have created a checker with Codan, and I'd like to test it with JUnit.
I have found test case like below in CDT, which I imported :

	//	 typedef unsigned int uint8_t;
	//
	//	uint8_t return_typedef(void) {
	//	return; // error here on line 4
       	//	}
	public void testTypedefReturnFunction() {
		loadCodeAndRun(getAboveComment());
		checkErrorLine(4);
	}

I'd like to do something similar, but I don't want to import the whole
project. I tried importing only the minimum required, but it's still too
many (over 200 classes).
What is the best way to test my checker ?

Thanks in advance,
Hadrien Bertrand



--
View this message in context: http://eclipse.1072660.n5.nabble.com/JUnit-Checker-tp165746.html
Sent from the Eclipse CDT - Development mailing list archive at Nabble.com.


Back to the top