capablemonkey / dwolla-stress

Stress testing Dwolla's API
1 stars 0 forks source link

Write tests to ensure response times are within an acceptable limit #4

Open capablemonkey opened 10 years ago

capablemonkey commented 10 years ago

Instead of just printing the stat report out to console, return the stat report as an object.

That way, we can write tests with should to see if reality meets our expectations:

statReport = {
averageResponseTime: 3000,
...
}

statReport.averageResponseTime.should.be.less.than(5000);

This will be helpful in automating these tests