Skip to content
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

Removing the "tcFriendlyMessage image" from TeamCity log #324

Closed
galatrash opened this issue Jan 6, 2017 · 7 comments
Closed

Removing the "tcFriendlyMessage image" from TeamCity log #324

galatrash opened this issue Jan 6, 2017 · 7 comments

Comments

@galatrash
Copy link

If the image capturing is enabled and there are many images captured, then dumping the content of these into the text stream of the reporter is making the generated report huge.

Is there a way to disable this image dump (the code: tcFriendlyMessage image) in the TeamCity reporter?

@lefthandedgoat
Copy link
Owner

I followed the code and I am 90% sure that if you set this to false, screenshots wont be taken, and wont be put in your messages.

https://github.com/lefthandedgoat/canopy/blob/master/src/canopy/configuration.fs#L71

Images in tc messages exist btw because using some tricks you can have failure images embedded into your team city report. I have a gist on how to do it if you are interested.

@galatrash
Copy link
Author

Maybe you misunderstood me. I need the screenshots to stay, but don't want the image being dumped as a string to appear in the log. Here is a sample of what I get in my TeamCity logs which is making the logs very huge:

  FAIL: 
	UI element "#Manage > #GlobalAssets" is visible.
[23:11:38]canopy-image(iVBORw0KGgoAA ... a huge KB of text here ... ORK5CYII=)

@lefthandedgoat
Copy link
Owner

You want the images written to a file and saved as a png but not in the console?

I would have to add a flag for that to disable TC images.

The only way to that I know of to get inline images in TC is to write them to the console like that.

@galatrash
Copy link
Author

A flag would be great. I'm not interested in inlined images in TC report.

@lefthandedgoat
Copy link
Owner

ok cool I can do that for ya

@galatrash
Copy link
Author

Thanks a lot.

lefthandedgoat added a commit that referenced this issue Jan 6, 2017
@lefthandedgoat
Copy link
Owner

You can find a new package here: https://www.nuget.org/packages/canopy/1.0.7

reporter <- new TeamCityReporter(false) :> IReporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants