Skip to content

Commit

Permalink
fix: update currents cmd package
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Nov 25, 2024
1 parent fe48720 commit 70245ca
Show file tree
Hide file tree
Showing 22 changed files with 10,983 additions and 5,729 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ The Postman example has the following commands:
- `report-results-postman`: Uploads the results to Currents platform.
- `postman:full`: Executes all the postman example related commands consecutively in the right order.

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.

### Vitest
Vitest example is in `vitest-example` folder.
The Vitest example has the following commands:
Expand Down
14 changes: 7 additions & 7 deletions cy-example/combined-results.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<testsuites>
<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">
<testcase name="Second Test Suite visits google" time="1.349" classname="visits google" failure="false" error="false" success="true"/>
<testcase name="Second Test Suite can search" time="4.002" classname="can search" failure="false" error="false" success="true"/>
</testsuite>
<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">
<testcase name="First Test Suite visits google" time="0" classname="visits google" failure="true" error="true" success="false">
<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">
<testcase name="First Test Suite visits google" time="5.694" classname="visits google" failure="true" error="true" success="false">
<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'
at Context.eval (webpack:///./e2e/first.cy.js:4:15)</failure>
</testcase>
<testcase name="First Test Suite can search" time="4.588" classname="can search" failure="false" error="false" success="true"/>
<testcase name="First Test Suite can search" time="3.185" classname="can search" failure="false" error="false" success="true"/>
</testsuite>
<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">
<testcase name="Second Test Suite visits google" time="1.152" classname="visits google" failure="false" error="false" success="true"/>
<testcase name="Second Test Suite can search" time="3.345" classname="can search" failure="false" error="false" success="true"/>
</testsuite>
</testsuites>
6 changes: 6 additions & 0 deletions cy-example/cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
const { defineConfig } = require("cypress");

module.exports = defineConfig({
retries: 3,
taskTimeout: 10,
execTimeout: 10,
requestTimeout: 10,
pageLoadTimeout: 10,
responseTimeout: 10,
e2e: {
supportFile: false,
specPattern: "cy-example/e2e/*.cy.js",
Expand Down
37 changes: 37 additions & 0 deletions cy-example/results-8d6af8eb030c1e7754b1e6b81add286e.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="0.11199999999999999" tests="2" failures="2">
<testsuite name="Root Suite" timestamp="2024-11-20T20:12:54" tests="0" file="cy-example/e2e/first.cy.js" failures="0" time="0">
</testsuite>
<testsuite name="First Test Suite" timestamp="2024-11-20T20:12:54" tests="2" failures="2" time="0.11199999999999999">
<testcase name="First Test Suite visits google" time="0.076" classname="visits google" failure="true" error="true" success="false">
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
</testcase>
<testcase name="First Test Suite can search" time="0.036" classname="can search" failure="true" error="true" success="false">
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
</testcase>
</testsuite>
</testsuites>
11 changes: 0 additions & 11 deletions cy-example/results-9b3c9e70a3ea29bded50339819b55a4d.xml

This file was deleted.

37 changes: 37 additions & 0 deletions cy-example/results-a5c70d27b2e3dbfead071b1dc5a43c9c.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="Mocha Tests" time="0.07200000000000001" tests="2" failures="2">
<testsuite name="Root Suite" timestamp="2024-11-20T20:12:56" tests="0" file="cy-example/e2e/second.cy.js" failures="0" time="0">
</testsuite>
<testsuite name="Second Test Suite" timestamp="2024-11-20T20:12:56" tests="2" failures="2" time="0.07200000000000001">
<testcase name="Second Test Suite visits google" time="0.037" classname="visits google" failure="true" error="true" success="false">
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
</testcase>
<testcase name="Second Test Suite can search" time="0.035" classname="can search" failure="true" error="true" success="false">
<failure message="`cy.screenshot()` timed out waiting `10ms` to complete." type="CypressError"><![CDATA[CypressError: `cy.screenshot()` timed out waiting `10ms` to complete.
at http://localhost:51324/__cypress/runner/cypress_runner.js:134043:73
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at http://localhost:51324/__cypress/runner/cypress_runner.js:4209:41
at tryCatcher (http://localhost:51324/__cypress/runner/cypress_runner.js:1830:23)
at Promise._settlePromiseFromHandler (http://localhost:51324/__cypress/runner/cypress_runner.js:1542:31)
at Promise._settlePromise (http://localhost:51324/__cypress/runner/cypress_runner.js:1599:18)
at Promise._settlePromise0 (http://localhost:51324/__cypress/runner/cypress_runner.js:1644:10)
at Promise._settlePromises (http://localhost:51324/__cypress/runner/cypress_runner.js:1720:18)
at _drainQueueStep (http://localhost:51324/__cypress/runner/cypress_runner.js:2430:12)
at _drainQueue (http://localhost:51324/__cypress/runner/cypress_runner.js:2423:9)
at Async._drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2439:5)
at Async.drainQueues (http://localhost:51324/__cypress/runner/cypress_runner.js:2309:14)]]></failure>
</testcase>
</testsuite>
</testsuites>
13 changes: 0 additions & 13 deletions cy-example/results-cd26ab75fb7fa3716e4f782fc2925e78.xml

This file was deleted.

Loading

0 comments on commit 70245ca

Please sign in to comment.