-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add content() to LogAssert #237
Comments
There is already a way to get the whole output simply by using
The
The Apart from that this is also described in the users guide: https://khmarbaise.github.io/maven-it-extension/itf-documentation/usersguide/usersguide.html#_assertion_for_maven_log Furthermore you can of course use:
or:
but to convert a list into a string (what So it could be used like this:
Furthermore to get only parts of a line you have to filter out the appropriate line via
If you are interested only in having a single line (of stdout) contain a partial content:
|
Thanks for the detailed response @khmarbaise. I know about
My If I use
The error message will only say that I am expecting to have a size of Regarding the line endings, perhaps something could be done like the ``PathAssert#content e.g.
|
Currently it is not easy to test whether the log file contains some kind of a string sub sequence.
It would be good if there is:
Another alternative would be to override
asString
fromAbstractObject
assert and provide the same functionality.e.g.
The text was updated successfully, but these errors were encountered: