User forums > General (but related to Code::Blocks)

Capturing a target file's output

(1/1)

chikigai:
Hello,

I use a Unit Test Framework Library called "CUnit" with one of my projects.
I have editted the library to output test results in GCC style compile warning/error format.

By executing the target file using "Post-build steps" of Build Options, the test results are displayed in the Build Log Message Pane.
However, test warnings/errors are not carried over to the Build Messages Pane since Compilation has already ended.

Is is currently possible to get the warnings/errors of a target file's output carried over to the Build Messages Pane?
If not, would it be best to create a Plugin with seperate Menu Options, Message Panes, etc. to capture such output?
I guess this makes more sense since a target files output does not necessarily have anything to do with the Build Process.

mandrav:

--- Quote from: chikigai on August 01, 2006, 03:24:27 am ---By executing the target file using "Post-build steps" of Build Options, the test results are displayed in the Build Log Message Pane.
However, test warnings/errors are not carried over to the Build Messages Pane since Compilation has already ended.

--- End quote ---

This is not the reason. Pre/post build steps are filtered by the build messages pane too. Most probably the format doesn't match. To test this, go to your compiler's advanced global settings and add a new simple regex that would certainly catch your messages (like * maybe?).

chikigai:
Thanks a bunch for the quick response!

As you pointed out, the format was incorrect - missed a colen after the line number....... :(
Works perfectly now!

Completely forgot about the Output Parser settings.
Now I know where to fiddle with to capture specific output formats!


Cheers,
Dan

Navigation

[0] Message Index

Go to full version