Unit Testing Apigee APIs

Not applicable

I've looked through the documentation and don't see anything related to unit testing of APIs created with Apigee. With our current homegrown APIs we're writing today, we can inject and mock dependencies for unit testing and integration testing. Is this something that's possible with Apigee at all?

0 3 618
3 REPLIES 3

Not applicable

We are using feature files available with Cucumber/Aplicki to test our APIs at an integration level but I haven't found anything yet that I would qualify as unit testing. The only caveat to this is that I write junit tests for any java callout policies that I invoke.

Not applicable

If you're leveraging Node.js capabilities in Edge you can leverage Express and Node.js standard frameworks such as Mocha, Sinon, Supertest, Istambul, etc. So checkout these articles: Testing and Code Coverage with Node.js APIs or How to correctly unit test Express article.

For testing Apigee Policies take a look at Apigee Poliester by @Sean Davis.

Hope it helps!

@SoujanyaNaganuri , Avoid self promoting business using training links in Apigee Community. If repeated, account will be suspended next time. Removing the links.