Testing

Testing CLI application is difficult due to various reasons:spring-doc.cn

  • There are differences between OS’s.spring-doc.cn

  • Within the same OS there may be different shell implementations in use.spring-doc.cn

  • What goes into a shell and comes out from a shell may be totally different from what you see in the shell itself due to invisible control characters.spring-doc.cn

  • The shell may feel synchronous but most likely it is not, meaning when something is written into it, you can’t assume next update in it is not final.spring-doc.cn

Testing support is currently under development and will be unstable for various parts.

Section Summary