Skip to content

Commit

Permalink
Varred the test report, so that it can be mfurther worked upon.
Browse files Browse the repository at this point in the history
  • Loading branch information
pisi committed Oct 29, 2011
1 parent 6050474 commit 4e7807b
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,26 @@
var
//server= 'http://au:4567',
server= 'http://jquery.vostrel.cz',
timestamp= +new Date()
timestamp= +new Date(),
report= {
timestamp: timestamp,
filter: config.filters,
count: {
total: total,
pass: total - failures,
fail: failures
},
fails: dump($('#qunit-tests li.fail')),
version: {
jquery: $().jquery,
reel: $.reel.version
},
results: $('#qunit-testresult').html(),
agent: $('#qunit-userAgent').html()
}

$.post(server+'/collect/reel/testrun/results', {
timestamp: timestamp,
filter: config.filters,
count: {
total: total,
pass: total - failures,
fail: failures
},
fails: dump($('#qunit-tests li.fail')),
version: {
jquery: $().jquery,
reel: $.reel.version
},
results: $('#qunit-testresult').html(),
agent: $('#qunit-userAgent').html()
});
$('#result_link').attr('href', server+'/view/reel/testrun/result/'+timestamp);
$.post(server+'/collect/reel/testrun/results', report);

function dump($collection){
var collection = [];
Expand Down

0 comments on commit 4e7807b

Please sign in to comment.