ci-slack-reporter 1.0.9-a4 → 1.0.9-a6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -31,7 +31,7 @@ class MyReporter {
|
|
31
31
|
|
32
32
|
runner
|
33
33
|
.once(EVENT_RUN_BEGIN, () => {
|
34
|
-
console.log(
|
34
|
+
console.log(`⚡runner ${runner.file}`);
|
35
35
|
|
36
36
|
out[runner.file] = {
|
37
37
|
attachments: [
|
@@ -108,8 +108,8 @@ class MyReporter {
|
|
108
108
|
|
109
109
|
out[runner.file].attachments[0].blocks[0].text.text = `Tests finished ${stats.passes}/${stats.passes + stats.failures}`;
|
110
110
|
out[runner.file].attachments[0].color = stats.failures ? "#a30200" : "#2eb886";
|
111
|
+
console.log(`⚡ webhook send ${runner.file} / ${process.env.CI_SLACK_REPORTER_WEBHOOK}`, JSON.stringify(out[runner.file]));
|
111
112
|
webhook.send(out[runner.file]);
|
112
|
-
console.log('⚡ webhook send');
|
113
113
|
|
114
114
|
if (stats.failures) {
|
115
115
|
out[runner.file].attachments[0].blocks = out[runner.file].attachments[0].blocks.filter(el => {
|