hatchteam / protractor-trx-reporter

1 stars 0 forks source link

Wrong duration calculation in index.js #3

Open seven-ply opened 9 years ago

seven-ply commented 9 years ago

I just had a problem importing a trx-report, which was generated with the help of the protractor-trx-reporter. I run into some time parsing issues when I imported my report. In the index.js file you are currently calculating the duration like that:

.att('duration', "0:0:" + (spec.finished_at - spec.startTime) / 1000)

if your test takes more less than 60s you do not have any issues. However, if you have time consuming test cases you will run into time parsing issues (i.e.: 0:0:65)