Get help with testing, discuss unit testing strategies etc.


Post by cwtuan »

My test.t.js shown as below has to wait for store load event, then continue to next action.
function(next) {
  t.waitForStoresToLoad([ userGrid.store ], function() {
     next();
  });
}
If there's something wrong in our server side, the waitForStoresToLoad's callback will never happen and next action will not run, leading `t.chain()` failed.
Failed assertion `waitFor` 
Condition was not fullfilled during 180000ms
The step in `t.chain()` call did not complete within required timeframe, chain can not proceed
Step number: 10 (1-based)
In this case, the failed test script won't be listed on the report file.

But, it's indeed a failure case. I would like to see such failed test script listed on the report file.
Is that possible?

Post by nickolay »

Hm.. The failing "waitFor" assertion does not present in the JUnit report?

Post by cwtuan »

No, the entire failing script isn't shown in report.
But I cannot reproduce this in the siesta's example.
I am still debugging it.

Post Reply