Test automation for apis with bats and httpie

In this post, I will explain to you how I solved integration testing for the Nextcloud News App. I recently faced the issue that the Nextcloud News App, which I maintain in my free time, only had limited integration testing. Already in place was automated testing of the command line interface of the app, the provided REST API was not tested at all at this point. The infrastructure News is a Nextcloud app and therefore requires a web server, PHP and a database....

October 25, 2022 · 2 min · Benjamin Brahmer