Author Topic: Custom Error Parsing with split message field?  (Read 1602 times)

Shelku

  • Community Member
  • Posts: 45
  • Hero Points: 0
Custom Error Parsing with split message field?
« on: September 28, 2013, 04:57:41 pm »
I'm using EmbUnit which spits out the errors like:
{Test Suite}.{function name} ({file name} {line number}) exp {x} was {y}

For example:
MyTests.MyTest1 (test.c 15) exp 0 was 255

My problem is that I can only configure the error parsing to pick out the message from a continuous block of characters. So I can either pick to get the test suite and test name (beginning of the line):
Code: [Select]
^{#3?+}:b\((([A-Za-z]\:|)(\\|/|)(:f(\\|/))@){#0:p}:b{#1:i}
or I can pick out the expected/actual information (end of line):
Code: [Select]
?+:b\((([A-Za-z]\:|)(\\|/|)(:f(\\|/))@){#0:p}:b{#1:i}\):b{#3?+}$
Is there any way to combine the {#3} from both the beginning and end of the line? Or do I have to modify the output?

Matthew

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 990
  • Hero Points: 44
Re: Custom Error Parsing with split message field?
« Reply #1 on: October 02, 2013, 02:06:15 pm »
We'd don't have a way to "stitch together" group #3 by using different parts. However, you can use the entire matching line as group #3.
Like so:
^{#3?+:b\((([A-Za-z]\:|)(\\|/|)(:f(\\|/))@){#0:p}:b{#1:i}\)?+}$