Cylon
Member
Hi!
well the title says it all. I would like to write integration tests for my addon. My addon extends the xf rest api with new endpoints, or adds some new behaviour to existing endpoints, and I would like to be able to tests it with integration tests.
I found something about unit testing in the forum, but I think unit tests are not enough for my case. I would like to do something similar like the following:
Any ideas?
well the title says it all. I would like to write integration tests for my addon. My addon extends the xf rest api with new endpoints, or adds some new behaviour to existing endpoints, and I would like to be able to tests it with integration tests.
I found something about unit testing in the forum, but I think unit tests are not enough for my case. I would like to do something similar like the following:
- create a test scenario in maybe an in memory database ( a concrete combination from users, posts, permissions, etc).
- let a suite of integration tests to perform rest requests to the forum and check if the responses are the expected ones.
Any ideas?