TestJS Summit 2022
34 min
Testing CLI Utilities
Ever wondered what is the best way to end-to-end test your custom command line utilities? In this talk Florian Rappl will give you some insights what you can do to automatically verify your CLI tools and avoid regression.- Introduction: Why test CLI tools- Challenges: File system pollution, network and database issues, environment variables- Demo: Showcase issues with a demo CLI tool - Solutions: Test plan implementation, choosing the right level of containerization- Demo: Show solution using the previous CLI tool- Conclusion