mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-25 09:35:48 +02:00
Just output in the console the results for the integrations which ran
This commit is contained in:
parent
5279646985
commit
6b3331f47b
@ -53,6 +53,9 @@ async function runTests(results) {
|
|||||||
jasmineStarted(suiteInfo) {},
|
jasmineStarted(suiteInfo) {},
|
||||||
specDone(result) {
|
specDone(result) {
|
||||||
// Report on the result of individual tests.
|
// Report on the result of individual tests.
|
||||||
|
if (result.status === "excluded") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
++results.runs;
|
++results.runs;
|
||||||
if (result.failedExpectations.length > 0) {
|
if (result.failedExpectations.length > 0) {
|
||||||
++results.failures;
|
++results.failures;
|
||||||
@ -63,6 +66,9 @@ async function runTests(results) {
|
|||||||
},
|
},
|
||||||
specStarted(result) {},
|
specStarted(result) {},
|
||||||
suiteDone(result) {
|
suiteDone(result) {
|
||||||
|
if (result.status === "excluded") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Report on the result of `afterAll` invocations.
|
// Report on the result of `afterAll` invocations.
|
||||||
if (result.failedExpectations.length > 0) {
|
if (result.failedExpectations.length > 0) {
|
||||||
++results.failures;
|
++results.failures;
|
||||||
|
|||||||
@ -62,6 +62,9 @@ const TestReporter = function (browser) {
|
|||||||
this.specStarted = function (result) {};
|
this.specStarted = function (result) {};
|
||||||
|
|
||||||
this.specDone = function (result) {
|
this.specDone = function (result) {
|
||||||
|
if (result.status === "excluded") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Report on the result of individual tests.
|
// Report on the result of individual tests.
|
||||||
if (result.failedExpectations.length === 0) {
|
if (result.failedExpectations.length === 0) {
|
||||||
sendResult("TEST-PASSED", result.description);
|
sendResult("TEST-PASSED", result.description);
|
||||||
@ -75,6 +78,9 @@ const TestReporter = function (browser) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.suiteDone = function (result) {
|
this.suiteDone = function (result) {
|
||||||
|
if (result.status === "excluded") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Report on the result of `afterAll` invocations.
|
// Report on the result of `afterAll` invocations.
|
||||||
if (result.failedExpectations.length > 0) {
|
if (result.failedExpectations.length > 0) {
|
||||||
let failedMessages = "";
|
let failedMessages = "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user