diff --git a/.gitignore b/.gitignore index 903daa3..a57697b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,5 @@ node_modules upload.marker.json .currents .env -cypress/ .turbo **/.currents \ No newline at end of file diff --git a/README.md b/README.md index be41121..0cde6a0 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,4 @@ npm install - [Vitest](./packages/vitest) - [Vitest - parallel runs on GitHub Actions](./packages/vitest) - [WebdriverIO](./packages/wdio) +- [NodeJS Test Runner](./packages/nodejs-test-runner) diff --git a/cy-example/combined-results.xml b/cy-example/combined-results.xml deleted file mode 100644 index 819d50b..0000000 --- a/cy-example/combined-results.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - AssertionError: Timed out retrying after 4000ms: expected 'Google' to include 'Amazon' - at Context.eval (webpack:///./e2e/first.cy.js:4:15) - - - - - - - - \ No newline at end of file diff --git a/cy-example/config.json b/cy-example/config.json deleted file mode 100644 index 0986407..0000000 --- a/cy-example/config.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "framework": "junit", - "frameworkVersion": "13.16.0", - "cliArgs": { - "options": { "jUnitFile": "cy-example/combined-results.xml" }, - "args": [] - }, - "frameworkConfig": { - "originFramework": "cypress", - "originFrameworkVersion": "13.16.0" - } -} diff --git a/cy-example/cypress.config.js b/cy-example/cypress.config.js deleted file mode 100644 index 4c9cc3d..0000000 --- a/cy-example/cypress.config.js +++ /dev/null @@ -1,22 +0,0 @@ -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", - reporter: "cypress-junit-reporter", - reporterOptions: { - mochaFile: "cy-example/results-[hash].xml", - toConsole: true, - }, - setupNodeEvents(on, config) { - // implement node event listeners here - }, - }, -}); diff --git a/cy-example/e2e/first.cy.js b/cy-example/e2e/first.cy.js deleted file mode 100644 index 5a3e4e1..0000000 --- a/cy-example/e2e/first.cy.js +++ /dev/null @@ -1,11 +0,0 @@ -describe("First Test Suite", () => { - it("visits google", () => { - cy.visit("https://www.google.com"); - cy.title().should("include", "Amazon"); - }); - - it("can search", () => { - cy.visit("https://www.google.com"); - cy.get('[name="q"]').type("Cypress testing{enter}"); - }); -}); diff --git a/cy-example/e2e/second.cy.js b/cy-example/e2e/second.cy.js deleted file mode 100644 index a27982b..0000000 --- a/cy-example/e2e/second.cy.js +++ /dev/null @@ -1,11 +0,0 @@ -describe("Second Test Suite", () => { - it("visits google", () => { - cy.visit("https://www.google.com"); - cy.title().should("include", "Google"); - }); - - it("can search", () => { - cy.visit("https://www.google.com"); - cy.get('[name="q"]').type("Cypress testing{enter}"); - }); -}); diff --git a/cy-example/results-8d6af8eb030c1e7754b1e6b81add286e.xml b/cy-example/results-8d6af8eb030c1e7754b1e6b81add286e.xml deleted file mode 100644 index 55288a0..0000000 --- a/cy-example/results-8d6af8eb030c1e7754b1e6b81add286e.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/cy-example/results-a5c70d27b2e3dbfead071b1dc5a43c9c.xml b/cy-example/results-a5c70d27b2e3dbfead071b1dc5a43c9c.xml deleted file mode 100644 index db97dec..0000000 --- a/cy-example/results-a5c70d27b2e3dbfead071b1dc5a43c9c.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/nodejs-test-runner/README.md b/packages/nodejs-test-runner/README.md new file mode 100644 index 0000000..430ecee --- /dev/null +++ b/packages/nodejs-test-runner/README.md @@ -0,0 +1,3 @@ +# NodeJS Test Runner + Currents + +👷🏾‍♀️ Work in progress diff --git a/packages/nodejs-test-runner/package.json b/packages/nodejs-test-runner/package.json new file mode 100644 index 0000000..e6cda65 --- /dev/null +++ b/packages/nodejs-test-runner/package.json @@ -0,0 +1,9 @@ +{ + "name": "@currents-junit-xml-example/nodejs-test-runner", + "version": "1.0.0", + "description": "Integrate NodeJS test runner with Currents", + "main": "index.js", + "scripts": {}, + "license": "MIT", + "dependencies": {} +}