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