| 1 |
Eclipse error parsers |
| 2 |
===================== |
| 3 |
|
| 4 |
These are a godsend for extracting & quickly navigating to |
| 5 |
warnings & error messages from console output. Unforunately |
| 6 |
I don't know how to write an Eclipse plugin so you'll have |
| 7 |
to add them manually. |
| 8 |
|
| 9 |
To add a console parser to Eclipse, go to Window --> Preferences |
| 10 |
--> C/C++ --> Build --> Settings. Click on the 'Error Parsers' |
| 11 |
tab and then click the 'Add...' button. See the table below for |
| 12 |
the parser fields to add. |
| 13 |
|
| 14 |
Eclipse will only parse the console output during a build, so |
| 15 |
running your unit tests must be part of your build process. |
| 16 |
Either add this to your make/rakefile, or add it as a post- |
| 17 |
build step in your Eclipse project settings. |
| 18 |
|
| 19 |
|
| 20 |
Unity unit test error parsers |
| 21 |
----------------------------- |
| 22 |
Severity Pattern File Line Description |
| 23 |
------------------------------------------------------------------------------- |
| 24 |
Error (\.+)(.*?):(\d+):(.*?):FAIL: (.*) $2 $3 $5 |
| 25 |
Warning (\.+)(.*?):(\d+):(.*?):IGNORE: (.*) $2 $3 $5 |
| 26 |
Warning (\.+)(.*?):(\d+):(.*?):IGNORE\s*$ $2 $3 Ignored test |