You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a part of the integration test I would like to check for a specific error/warn/info/debug-message to be present (or not present) in the log.
I can think of two possible implementation approaches:
Implement a method that returns the log, e.g. as an array of log messages or log objects (logLevel, timestamp, message) or just the whole dump as string - whichever is easier to implement, though an array of log objects would be the most useful option from a developer side of view.
Implement a method that checks the log for containing a specific Regex with a specific log level.
Use case
During fixing a bug in my adapter I have introduced a follow-up-bug that can be identified by a specific log message. To fix this bug I would like to implement a test case that checks for this specific log message.
The text was updated successfully, but these errors were encountered:
MiSchroe
changed the title
[Feature request}: Method to read the log of the adapter startup in an integration test.
[Feature request]: Method to read the log of the adapter startup in an integration test.
Nov 21, 2024
As a part of the integration test I would like to check for a specific error/warn/info/debug-message to be present (or not present) in the log.
I can think of two possible implementation approaches:
Use case
During fixing a bug in my adapter I have introduced a follow-up-bug that can be identified by a specific log message. To fix this bug I would like to implement a test case that checks for this specific log message.
The text was updated successfully, but these errors were encountered: