Company
Date Published
Author
Tim Lucas
Word count
439
Language
English
Hacker News points
None

Summary

The integration of inline images into build logs is now possible with the latest updates to Terminal, an open-source log renderer, allowing developers to embed images directly in their test outputs. This enhancement, contributed by Michael Pearson and the Terminal team, enables quicker debugging by providing visual context without the need to search through build artifacts. Developers can now incorporate images from various testing tools like PhantomJS and Sauce Labs, or performance analyses from services like Calibre, directly into the logs. This feature requires updating build scripts to output a specific ANSI escape code and configuring builds to upload images as artifacts. For those using Ruby, a new gem, capybara-inline-screenshot, has been introduced to automatically embed Rails application test failures. Terminals not supporting this feature will simply ignore the image code, maintaining backward compatibility. The Terminal team encourages sharing innovative uses of this feature and offers support through their Buildkite Chat Slack room.