Skip to content

Commit 70245ca

Browse files
fix: update currents cmd package
1 parent fe48720 commit 70245ca

22 files changed

+10983
-5729
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ The Postman example has the following commands:
5353
- `report-results-postman`: Uploads the results to Currents platform.
5454
- `postman:full`: Executes all the postman example related commands consecutively in the right order.
5555

56+
Note: `gen-instance-postman` command uses `currents convert` command to make the file parsing easier for postman specifically and will increase the support for other frameworks overtime.
57+
5658
### Vitest
5759
Vitest example is in `vitest-example` folder.
5860
The Vitest example has the following commands:

cy-example/combined-results.xml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<testsuites>
3-
<testsuite name="Second Test Suite" timestamp="2024-11-20T15:19:44" tests="2" failures="0" time="5.351" file="cy-example/e2e/second.cy.js">
4-
<testcase name="Second Test Suite visits google" time="1.349" classname="visits google" failure="false" error="false" success="true"/>
5-
<testcase name="Second Test Suite can search" time="4.002" classname="can search" failure="false" error="false" success="true"/>
6-
</testsuite>
7-
<testsuite name="First Test Suite" timestamp="2024-11-20T15:19:29" tests="2" failures="1" time="4.588" file="cy-example/e2e/first.cy.js">
8-
<testcase name="First Test Suite visits google" time="0" classname="visits google" failure="true" error="true" success="false">
3+
<testsuite name="First Test Suite" timestamp="2024-11-20T20:04:35" tests="2" failures="1" time="8.879" file="cy-example/e2e/first.cy.js">
4+
<testcase name="First Test Suite visits google" time="5.694" classname="visits google" failure="true" error="true" success="false">
95
<failure message="Timed out retrying after 4000ms: expected 'Google' to include 'Amazon'" type="AssertionError">AssertionError: Timed out retrying after 4000ms: expected 'Google' to include 'Amazon'
106
at Context.eval (webpack:///./e2e/first.cy.js:4:15)</failure>
117
</testcase>
12-
<testcase name="First Test Suite can search" time="4.588" classname="can search" failure="false" error="false" success="true"/>
8+
<testcase name="First Test Suite can search" time="3.185" classname="can search" failure="false" error="false" success="true"/>
9+
</testsuite>
10+
<testsuite name="Second Test Suite" timestamp="2024-11-20T20:04:58" tests="2" failures="0" time="4.497" file="cy-example/e2e/second.cy.js">
11+
<testcase name="Second Test Suite visits google" time="1.152" classname="visits google" failure="false" error="false" success="true"/>
12+
<testcase name="Second Test Suite can search" time="3.345" classname="can search" failure="false" error="false" success="true"/>
1313
</testsuite>
1414
</testsuites>

cy-example/cypress.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
const { defineConfig } = require("cypress");
22

33
module.exports = defineConfig({
4+
retries: 3,
5+
taskTimeout: 10,
6+
execTimeout: 10,
7+
requestTimeout: 10,
8+
pageLoadTimeout: 10,
9+
responseTimeout: 10,
410
e2e: {
511
supportFile: false,
612
specPattern: "cy-example/e2e/*.cy.js",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites name="Mocha Tests" time="0.11199999999999999" tests="2" failures="2">
3+
<testsuite name="Root Suite" timestamp="2024-11-20T20:12:54" tests="0" file="cy-example/e2e/first.cy.js" failures="0" time="0">
4+
</testsuite>
5+
<testsuite name="First Test Suite" timestamp="2024-11-20T20:12:54" tests="2" failures="2" time="0.11199999999999999">
6+
<testcase name="First Test Suite visits google" time="0.076" classname="visits google" failure="true" error="true" success="false">
7+
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
8+
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
9+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
10+
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
11+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
12+
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
13+
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
14+
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
15+
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
16+
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
17+
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
18+
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
19+
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
20+
</testcase>
21+
<testcase name="First Test Suite can search" time="0.036" classname="can search" failure="true" error="true" success="false">
22+
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
23+
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
24+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
25+
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
26+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
27+
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
28+
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
29+
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
30+
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
31+
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
32+
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
33+
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
34+
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
35+
</testcase>
36+
</testsuite>
37+
</testsuites>

cy-example/results-9b3c9e70a3ea29bded50339819b55a4d.xml

-11
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites name="Mocha Tests" time="0.07200000000000001" tests="2" failures="2">
3+
<testsuite name="Root Suite" timestamp="2024-11-20T20:12:56" tests="0" file="cy-example/e2e/second.cy.js" failures="0" time="0">
4+
</testsuite>
5+
<testsuite name="Second Test Suite" timestamp="2024-11-20T20:12:56" tests="2" failures="2" time="0.07200000000000001">
6+
<testcase name="Second Test Suite visits google" time="0.037" classname="visits google" failure="true" error="true" success="false">
7+
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
8+
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
9+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
10+
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
11+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
12+
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
13+
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
14+
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
15+
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
16+
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
17+
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
18+
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
19+
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
20+
</testcase>
21+
<testcase name="Second Test Suite can search" time="0.035" classname="can search" failure="true" error="true" success="false">
22+
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
23+
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
24+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
25+
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
26+
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
27+
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
28+
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
29+
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
30+
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
31+
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
32+
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
33+
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
34+
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
35+
</testcase>
36+
</testsuite>
37+
</testsuites>

cy-example/results-cd26ab75fb7fa3716e4f782fc2925e78.xml

-13
This file was deleted.

0 commit comments

Comments
 (0)