This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Shell 3.4.0! |
Settings
Built-in emulation uses terminal width 80 and height 24 by default. Changing dimensions is useful if the output would span multiple lines and you don’t want to handle those cases in a tests.
These settings can be changed using properties spring.shell.test.terminal-width
or spring.shell.test.terminal-height
.
@ShellTest(properties = {
"spring.shell.test.terminal-width=120",
"spring.shell.test.terminal-height=40"
})
class ShellSettingsSample {}
ShellTest
annotation have fields terminalWidth
and terminalHeight
which can also be used to change dimensions.
@ShellTest(terminalWidth = 120, terminalHeight = 40)
class ShellSettingsSample {}