artes 1.5.4 → 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.
@@ -8,20 +8,20 @@ This document describes the environment variables used to identify which CI/CD r
8
8
 
9
9
  The reporter inspects environment variables at runtime to detect the current CI/CD platform. **No configuration is needed** — simply ensure the variables below are present in your environment, and the correct runner will be shown in the report automatically.
10
10
 
11
- ### Supported Platforms
11
+ ### Supported Platforms
12
12
 
13
13
  | Platform | Auto-detected via |
14
14
  | --------------------- | ---------------------------------- |
15
- | **GitHub Actions** | `GITHUB_RUN_ID` |
16
- | **Jenkins** | `JENKINS_HOME` |
17
- | **GitLab CI** | `CI_PIPELINE_ID` |
18
- | **Bitbucket Pipelines** | `BITBUCKET_BUILD_NUMBER` |
19
- | **CircleCI** | `CIRCLE_WORKFLOW_ID` |
20
- | **Azure Pipelines** | `BUILD_BUILDID` |
21
- | **TeamCity** | `BUILD_NUMBER` + `TEAMCITY_VERSION`|
22
- | **Travis CI** | `TRAVIS_BUILD_NUMBER` |
23
- | **Bamboo** | `bamboo_buildNumber` |
24
- | **Local / Other** | Fallback — shown as "Local Run" |
15
+ | [**GitHub Actions**](#github-actions) | `GITHUB_RUN_ID` |
16
+ | [**Jenkins**](#jenkins) | `JENKINS_HOME` |
17
+ | [**GitLab CI**](#gitlab-ci) | `CI_PIPELINE_ID` |
18
+ | [**Bitbucket Pipelines**](#bitbucket-pipelines) | `BITBUCKET_BUILD_NUMBER` |
19
+ | [**CircleCI**](#circleci) | `CIRCLE_WORKFLOW_ID` |
20
+ | [**Azure Pipelines**](#azure-pipelines) | `BUILD_BUILDID` |
21
+ | [**TeamCity**](#teamcity) | `BUILD_NUMBER` + `TEAMCITY_VERSION`|
22
+ | [**Travis CI**](#travis-ci) | `TRAVIS_BUILD_NUMBER` |
23
+ | [**Bamboo**](#bamboo) | `bamboo_buildNumber` |
24
+ | [**Local Manual Run**](#local-manual-run) | Fallback — shown as "Local Run" |
25
25
 
26
26
  When none of the above variables are present, the executor is shown as **Manual Execution** in the report.
27
27
 
@@ -42,7 +42,7 @@ When none of the above variables are present, the executor is shown as **Manual
42
42
 
43
43
  ## Supported CI/CD Platforms
44
44
 
45
- ### GitHub Actions
45
+ ### GitHub Actions
46
46
 
47
47
  Automatically detected when running inside a GitHub Actions workflow.
48
48
 
@@ -57,7 +57,7 @@ Automatically detected when running inside a GitHub Actions workflow.
57
57
 
58
58
  ---
59
59
 
60
- ### Jenkins
60
+ ### Jenkins
61
61
 
62
62
  Detected when `JENKINS_HOME` is set in the environment.
63
63
 
@@ -72,7 +72,7 @@ Detected when `JENKINS_HOME` is set in the environment.
72
72
 
73
73
  ---
74
74
 
75
- ### GitLab CI
75
+ ### GitLab CI
76
76
 
77
77
  Detected when `CI_PIPELINE_ID` is set in the environment.
78
78
 
@@ -86,7 +86,7 @@ Detected when `CI_PIPELINE_ID` is set in the environment.
86
86
 
87
87
  ---
88
88
 
89
- ### Bitbucket Pipelines
89
+ ### Bitbucket Pipelines
90
90
 
91
91
  Detected when `BITBUCKET_BUILD_NUMBER` is set in the environment.
92
92
 
@@ -99,7 +99,7 @@ Detected when `BITBUCKET_BUILD_NUMBER` is set in the environment.
99
99
 
100
100
  ---
101
101
 
102
- ### CircleCI
102
+ ### CircleCI
103
103
 
104
104
  Detected when `CIRCLE_WORKFLOW_ID` is set in the environment.
105
105
 
@@ -113,7 +113,7 @@ Detected when `CIRCLE_WORKFLOW_ID` is set in the environment.
113
113
 
114
114
  ---
115
115
 
116
- ### Azure Pipelines
116
+ ### Azure Pipelines
117
117
 
118
118
  Detected when `BUILD_BUILDID` is set in the environment.
119
119
 
@@ -126,7 +126,7 @@ Detected when `BUILD_BUILDID` is set in the environment.
126
126
 
127
127
  ---
128
128
 
129
- ### TeamCity
129
+ ### TeamCity
130
130
 
131
131
  Detected when **both** `BUILD_NUMBER` and `TEAMCITY_VERSION` are set.
132
132
 
@@ -140,7 +140,7 @@ Detected when **both** `BUILD_NUMBER` and `TEAMCITY_VERSION` are set.
140
140
 
141
141
  ---
142
142
 
143
- ### Travis CI
143
+ ### Travis CI
144
144
 
145
145
  Detected when `TRAVIS_BUILD_NUMBER` is set in the environment.
146
146
 
@@ -153,7 +153,7 @@ Detected when `TRAVIS_BUILD_NUMBER` is set in the environment.
153
153
 
154
154
  ---
155
155
 
156
- ### Bamboo
156
+ ### Bamboo
157
157
 
158
158
  Detected when `bamboo_buildNumber` is set in the environment.
159
159
 
@@ -166,7 +166,7 @@ Detected when `bamboo_buildNumber` is set in the environment.
166
166
 
167
167
  ---
168
168
 
169
- ### 🖥️ Local / Manual Run
169
+ ### Local Manual Run
170
170
 
171
171
  If **none** of the above variables are detected, the report will show **"Local Run"** with build name `"Manual Execution"`. This is the default fallback for local development.
172
172
 
@@ -195,4 +195,4 @@ export GITHUB_RUN_NUMBER=1
195
195
  export GITHUB_SERVER_URL=https://github.com
196
196
  export GITHUB_REPOSITORY=my-org/my-repo
197
197
 
198
- ```
198
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "artes",
3
- "version": "1.5.4",
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;
@@ -92,12 +92,9 @@ function generateTestCoverageWidgetCss(testCoverage, testPercentage, meetsThresh
92
92
  const statusLine = `Tests ${statusVerb} \u2014 required ${testPercentage}% with ${pctLabel}%`;
93
93
 
94
94
 
95
- const r1 = (fill * 0.35).toFixed(2);
96
- const r2 = (fill * 0.60).toFixed(2);
97
- const tm = testPercentage;
98
95
 
99
96
  const barGradient = `linear-gradient(to right, #f44336 0%, #ff9800 35%, #ffeb3b 60%, #4caf50 100%)`;
100
- const pointerX = `${fillPct}%`;
97
+
101
98
  const svgLabels = [
102
99
  { val: "0", x: "0%", anchor: "start" },
103
100
  { val: "20", x: "20%", anchor: "middle" },
@@ -343,7 +340,7 @@ function inferExtFromMime(mime) {
343
340
  }
344
341
 
345
342
  function generateCss(report, today, reportName, logoUrl) {
346
- return `.side-nav{width:200px !important}.side-nav__brand{background:url('${logoUrl}') no-repeat center left !important;background-size:contain !important;height:80px;width:200px;display:flex !important;align-items:center;padding-left:80px}.side-nav__brand img,.side-nav__brand svg{display:none !important}.side-nav__brand-text{font-size:0 !important;display:block !important;padding: 0 8px;}.side-nav__brand-text::after{content:'${report.brandName}';font-size:26px;color:white;}.widget__title{font-weight:lighter;margin-bottom:15px;margin-top:0;text-transform:uppercase}.widget__flex-line:first-child .widget__title{font-size:0}.widget__flex-line:first-child .widget__title::before{content:'${reportName} ${today}';font-size:18px;font-weight:lighter;text-transform:uppercase}.widget__flex-line:first-child .widget__subtitle{font-size:14px}.widget__flex-line:not(:first-child) .widget__title{font-size:inherit;font-weight:lighter}`;
343
+ return `.side-nav{background: #091628 !important; max-width:200px !important}.side-nav__brand{background:url('${logoUrl}') no-repeat center left !important;background-size:contain !important;height:80px;width:200px;display:flex !important;align-items:center;padding-left:80px}.side-nav__brand img,.side-nav__brand svg{display:none !important}.side-nav__brand-text{font-size:0 !important;display:block !important;padding: 0 8px;}.side-nav__brand-text::after{content:'${report.brandName}';font-size:23px;color:white;}.widget__title{font-weight:lighter;margin-bottom:15px;margin-top:0;text-transform:uppercase}.widget__flex-line:first-child .widget__title{font-size:0}.widget__flex-line:first-child .widget__title::before{content:'${reportName} ${today}';font-size:18px;font-weight:lighter;text-transform:uppercase}.widget__flex-line:first-child .widget__subtitle{font-size:14px}.widget__flex-line:not(:first-child) .widget__title{font-size:inherit;font-weight:lighter}`;
347
344
  }
348
345
 
349
346
  function injectCssAndReturn(cssPath, dynamicCss) {
@@ -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`);