artes 1.5.5 → 1.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "The simplest way to automate UI and API tests using Cucumber-style steps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -44,7 +44,7 @@ function applyLogo(cucumberConfig, report, today, reportName, logoBuffer, logoMi
44
44
 
45
45
  if (testPercentage > 0) {
46
46
  const { testCoverageCalculator } = require("./testCoverageCalculator");
47
- const testCoverage = testCoverageCalculator();
47
+ const testCoverage = testCoverageCalculator({ silent: true });
48
48
 
49
49
  if (testCoverage) {
50
50
  const meetsThreshold = testCoverage.percentage >= testPercentage;
@@ -1,7 +1,7 @@
1
1
  const fs = require("fs");
2
2
  const path = require("path");
3
3
 
4
- function testCoverageCalculator() {
4
+ function testCoverageCalculator({ silent = false } = {}) {
5
5
 
6
6
  const testStatusFile = path.join(process.cwd(), "node_modules", "artes" , "test-status", 'test-status.txt');
7
7
 
@@ -61,7 +61,7 @@ function testCoverageCalculator() {
61
61
  }
62
62
  });
63
63
 
64
- if (retriedTests.length > 0) {
64
+ if (!silent && retriedTests.length > 0) {
65
65
  console.warn('\n\x1b[33mRetried test cases:');
66
66
  retriedTests.forEach(t => {
67
67
  console.warn(`- "${t.scenario}" ran ${t.count} times`);