-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature-request: ability to adjust output format #13
Comments
@WolfgangKluge Thanks and so sorry for my late response. Would you tell me example of formats that you want to use? I'm ok to reveal |
@twada: Thanks for answering... I tried to use your library with a tap consumer (testem). This consumer needs a somewhat different format. The solution could be on both sides - but in this case I think testem is mainly right. The main thing is, that lines starting with # are treated as comments. Thus
just ignores the test name on the consumer side. (If I remember correctly) it's even worse if I don't provide an assertion name. Then I'll get something like
I've a similar problem with multiline text (only the first line is readable to non-humans) and well known metadata like I would expect something like this (if you prefer one
or one
If I can achieve such formats by overwriting |
Thanks and understood. You are be talking about TAP 13 specification. I'm willing to provide options like
If you are in a hurry, please override entire var tap = qunitTap(QUnit, function() { console.log.apply(console, arguments); });
tap.log = function log (details) {
tap.count += 1;
var testLine = details.result ? 'ok' : 'not ok';
testLine += (' ' + tap.count);
testLine += (' - ' + details.module);
testLine += (' - ' + details.name);
testLine += (' - ' + details.message);
tap.puts(testLine + ' ### your YAML block here ###');
}; Thanks! |
It would be great to have the choice between multiple output formats (comma-separated, newline, ...) and/or the ability to replace
formatDetails
at all.The text was updated successfully, but these errors were encountered: