Skip to content

Commit

Permalink
test(fjage.js): improved test logging for fjage.js browser tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notthetup committed Jan 31, 2025
1 parent f793456 commit 098b850
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gateways/js/test/spec/fjage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,14 +806,15 @@ const autoReporter = {
},

jasmineDone: async function(result){
var trace = '';
for(var i = 0; i < failedSpecs.length; i++) {
trace += 'Failed : ' + failedSpecs[i].fullName + '\n';
for (var j = 0; j < failedSpecs[i].failedExpectations.length; j++){
trace += failedSpecs[i].failedExpectations[j].stack + '\n';
}
trace += '\n';
}
let trace = `# ${failedSpecs.length} test(s) failed ${result.order && result.order.random ? '- with seed ' + result.order.seed : ''}\n`;
failedSpecs.forEach(f =>{
trace += `## ${f.fullName}\n`;
f.failedExpectations.forEach(e => {
trace += `### ${e.message}\n`;
trace += e.stack;
trace += '\n';
});
});
if (isBrowser){
const params = new URLSearchParams(window.location.search);
if (params && params.get('refresh') == 'true' && result.overallStatus == 'passed') {
Expand Down

0 comments on commit 098b850

Please sign in to comment.