celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Menno van der Graaf (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CELIX-339) celix_log_mock doesnt show logs to the user
Date Fri, 08 Jan 2016 10:16:39 GMT

     [ https://issues.apache.org/jira/browse/CELIX-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Menno van der Graaf updated CELIX-339:
--------------------------------------
    Attachment: log_mock_print.patch

> celix_log_mock doesnt show logs to the user
> -------------------------------------------
>
>                 Key: CELIX-339
>                 URL: https://issues.apache.org/jira/browse/CELIX-339
>             Project: Celix
>          Issue Type: Improvement
>          Components: Framework
>            Reporter: Menno van der Graaf
>            Priority: Minor
>         Attachments: log_mock_print.patch
>
>
> mocking out the framework logger helps tests to detect when an exception is noted by
the code under test. The current implementation only registers the "actual call" with the
mock framework though, it does not output anything to the user (tester/developer). This can
make debugging of the failing tests somewhat difficult, since the mocking framework never
registers WHEN a call to the logger was made.
> attached will be a file that fixes "celix_log_mock.c", so that both the "actual call"
is registered, and the error string is written to STDOUT.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message