Citrus Framework - echo action does not “echo”

≡放荡痞女 提交于 2020-03-05 00:34:34

问题


I am attempting to debug/trace an integration test written with the Citrus Framework. Among the various test "actions" that can be taken, there is an echo action which is supposed to do what you might expect: echo something to the console log. The problem is: it does not echo.

When I run the integration test (via Maven failsafe plugin), errors from the test failing appear on the console, but nothing else.

What am I missing?

UPDATE:

This appears to only be a problem when running the integration tests as part of a maven build. When the test is run from eclipse, the complete console log appears.


回答1:


This may be an issue with your test names. Failsafe Maven plugin by default has a naming convention and only runs those tests that follow this convention. So your test names must match a pattern.

Please review the default naming pattern in failsafe plugin and see if this fixes your issue.




回答2:


I was able to figure out how to get logging to capture the Citrus integration test console output. See related issue Citrus Framework logging - how to enable/use.



来源:https://stackoverflow.com/questions/60156595/citrus-framework-echo-action-does-not-echo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!