'Unit Testing' Policies in Apigee

It can sometimes be difficult to unit test Apigee Edge proxies. Javascript can be unit tested using frameworks such as Mocha, and full integration testing can be completed using Apickli. However if a developer wants to ensure that a policy has been run, a cache has been hit or a variable has been set, manually checking the trace or setting a Debug header are the only options.

By using Apigee Polyester (thanks @Diego Zuluaga for the name), automated test suite can start a debug session and assert anything that you would normally check in a trace window.

The first version has been released. Please find it here:

https://github.com/seantdg/apigee-polyester

https://www.npmjs.com/package/apigee-polyester

I'll create a getting started guide soon, but until then there is a video here: https://www.youtube.com/watch?v=1LB_EbJhtBw

Please get in touch to provide feedback, bugs and feature requests!

Comments
ankitdwivedi_cs
New Member

Hi @Sean Davis

i was going through how we can perform unit testing and i found your post which does unit testing for a policy. I found it very good and useful

Are you still working on it as it's not being updated since last 3 year

Version history
Last update:
‎02-10-2016 05:23 PM
Updated by: