LWP-UserAgent-Mockable reviews

cpanratings
 

RSS | Module Info | Add a review of LWP-UserAgent-Mockable

LWP-UserAgent-Mockable (1.10) *****

If you're developing an Interface to a third party API using LWP, this is exactly the module you're looking for if you want to 'freeze' your test suite:

- Write tests as usual.

- Once happy, add this to them

- record

- default to replay mode.

One caveat through: If your test rely on Time, you might experience some issues. To fix that, make sure you don't use changing time in your tests. Specificaly, replace 'now' by whatever fixed time it was when you froze the tests.