cypress-qase-reporter 1.4.3 → 2.0.0-beta.0
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/README.md +32 -28
- package/package.json +44 -41
- package/tsconfig.build.json +9 -0
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -423
- package/dist/index.js.map +0 -1
- package/dist/mocha.d.ts +0 -4
- package/dist/mocha.js +0 -20
- package/dist/mocha.js.map +0 -1
- package/dist/reportBulk.js +0 -174
- package/examples_cypress_v10/cypress/e2e/second.cy.js +0 -59
- package/examples_cypress_v10/cypress/fixtures/example.json +0 -5
- package/examples_cypress_v10/cypress/plugins/index.js +0 -21
- package/examples_cypress_v10/cypress/support/commands.js +0 -25
- package/examples_cypress_v10/cypress/support/e2e.js +0 -20
- package/examples_cypress_v10/cypress.config.js +0 -30
- package/examples_cypress_v10/package-lock.json +0 -5198
- package/examples_cypress_v10/package.json +0 -17
- package/examples_cypress_v6/cypress/fixtures/example.json +0 -5
- package/examples_cypress_v6/cypress/integration/sample_spec.js +0 -39
- package/examples_cypress_v6/cypress/plugins/index.js +0 -21
- package/examples_cypress_v6/cypress/support/commands.js +0 -25
- package/examples_cypress_v6/cypress/support/index.js +0 -20
- package/examples_cypress_v6/cypress.json +0 -20
- package/examples_cypress_v6/package-lock.json +0 -6283
- package/examples_cypress_v6/package.json +0 -17
- package/test/plugin.test.ts +0 -179
- /package/{examples_cypress_v10/screenshots → screenshots}/screenshot.png +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { qase } from 'cypress-qase-reporter/dist/mocha';
|
|
2
|
-
|
|
3
|
-
describe('My First Test', () => {
|
|
4
|
-
qase(1, it('clicking "type" navigates to a new url', () => {
|
|
5
|
-
cy.visit('https://example.cypress.io');
|
|
6
|
-
|
|
7
|
-
cy.contains('type').click();
|
|
8
|
-
|
|
9
|
-
// Should be on a new URL which includes '/commands/actions'
|
|
10
|
-
cy.url().should('include', '/commands/actions');
|
|
11
|
-
}));
|
|
12
|
-
|
|
13
|
-
qase(2, it('Gets, types and asserts', () => {
|
|
14
|
-
cy.visit('https://example.cypress.io');
|
|
15
|
-
|
|
16
|
-
cy.contains('type').click();
|
|
17
|
-
|
|
18
|
-
// Should be on a new URL which includes '/commands/actions'
|
|
19
|
-
cy.url().should('include', '/commands/actions');
|
|
20
|
-
// Get an input, type into it and verify that the value has been updated
|
|
21
|
-
cy.get('.action-email')
|
|
22
|
-
.type('fake@email.com')
|
|
23
|
-
.should('have.value', 'unexpected@email.com');
|
|
24
|
-
}));
|
|
25
|
-
|
|
26
|
-
qase(3, it.skip('Gets, types and asserts', () => {
|
|
27
|
-
cy.visit('https://example.cypress.io');
|
|
28
|
-
|
|
29
|
-
cy.contains('type').click();
|
|
30
|
-
|
|
31
|
-
// Should be on a new URL which includes '/commands/actions'
|
|
32
|
-
cy.url().should('include', '/commands/actions');
|
|
33
|
-
|
|
34
|
-
// Get an input, type into it and verify that the value has been updated
|
|
35
|
-
cy.get('.action-email')
|
|
36
|
-
.type('fake@email.com')
|
|
37
|
-
.should('have.value', 'unexpected@email.com');
|
|
38
|
-
}));
|
|
39
|
-
|
|
40
|
-
it('Go to utilities', () => {
|
|
41
|
-
cy.visit('https://example.cypress.io');
|
|
42
|
-
|
|
43
|
-
cy.contains('Utilities').click();
|
|
44
|
-
|
|
45
|
-
// Should be on a new URL which includes 'utilities'
|
|
46
|
-
cy.url().should('include', 'utilities');
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
describe('Test Suite - Level 2', () => {
|
|
50
|
-
it('Go to Cypress API', () => {
|
|
51
|
-
cy.visit('https://example.cypress.io');
|
|
52
|
-
|
|
53
|
-
cy.contains('Cypress API').click();
|
|
54
|
-
|
|
55
|
-
// Should be on a new URL which includes 'utilities'
|
|
56
|
-
cy.url().should('include', 'cypress-api');
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/// <reference types="cypress" />
|
|
2
|
-
// ***********************************************************
|
|
3
|
-
// This example plugins/index.js can be used to load plugins
|
|
4
|
-
//
|
|
5
|
-
// You can change the location of this file or turn off loading
|
|
6
|
-
// the plugins file with the 'pluginsFile' configuration option.
|
|
7
|
-
//
|
|
8
|
-
// You can read more here:
|
|
9
|
-
// https://on.cypress.io/plugins-guide
|
|
10
|
-
// ***********************************************************
|
|
11
|
-
|
|
12
|
-
// This function is called when a project is opened or re-opened (e.g. due to
|
|
13
|
-
// the project's config changing)
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @type {Cypress.PluginConfig}
|
|
17
|
-
*/
|
|
18
|
-
module.exports = (on, config) => {
|
|
19
|
-
// `on` is used to hook into various events Cypress emits
|
|
20
|
-
// `config` is the resolved Cypress config
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// ***********************************************
|
|
2
|
-
// This example commands.js shows you how to
|
|
3
|
-
// create various custom commands and overwrite
|
|
4
|
-
// existing commands.
|
|
5
|
-
//
|
|
6
|
-
// For more comprehensive examples_cypress_v10 of custom
|
|
7
|
-
// commands please read more here:
|
|
8
|
-
// https://on.cypress.io/custom-commands
|
|
9
|
-
// ***********************************************
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// -- This is a parent command --
|
|
13
|
-
// Cypress.Commands.add("login", (email, password) => { ... })
|
|
14
|
-
//
|
|
15
|
-
//
|
|
16
|
-
// -- This is a child command --
|
|
17
|
-
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
// -- This is a dual command --
|
|
21
|
-
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
// -- This will overwrite an existing command --
|
|
25
|
-
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
// ***********************************************************
|
|
2
|
-
// This example support/index.js is processed and
|
|
3
|
-
// loaded automatically before your test files.
|
|
4
|
-
//
|
|
5
|
-
// This is a great place to put global configuration and
|
|
6
|
-
// behavior that modifies Cypress.
|
|
7
|
-
//
|
|
8
|
-
// You can change the location of this file or turn off
|
|
9
|
-
// automatically serving support files with the
|
|
10
|
-
// 'supportFile' configuration option.
|
|
11
|
-
//
|
|
12
|
-
// You can read more here:
|
|
13
|
-
// https://on.cypress.io/configuration
|
|
14
|
-
// ***********************************************************
|
|
15
|
-
|
|
16
|
-
// Import commands.js using ES2015 syntax:
|
|
17
|
-
import './commands'
|
|
18
|
-
|
|
19
|
-
// Alternatively you can use CommonJS syntax:
|
|
20
|
-
// require('./commands')
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const { defineConfig } = require('cypress')
|
|
2
|
-
|
|
3
|
-
module.exports = defineConfig({
|
|
4
|
-
reporter: 'cypress-multi-reporters',
|
|
5
|
-
reporterOptions: {
|
|
6
|
-
reporterEnabled: 'cypress-mochawesome-reporter, cypress-qase-reporter',
|
|
7
|
-
cypressMochawesomeReporterReporterOptions: {
|
|
8
|
-
charts: true,
|
|
9
|
-
},
|
|
10
|
-
cypressQaseReporterReporterOptions: {
|
|
11
|
-
apiToken: 'api_key',
|
|
12
|
-
projectCode: 'project_code',
|
|
13
|
-
logging: true,
|
|
14
|
-
basePath: 'https://api.qase.io/v1',
|
|
15
|
-
screenshotFolder: 'screenshots',
|
|
16
|
-
sendScreenshot: true,
|
|
17
|
-
runComplete: true,
|
|
18
|
-
environmentId: 1,
|
|
19
|
-
rootSuiteTitle: 'Cypress tests',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
video: false,
|
|
23
|
-
e2e: {
|
|
24
|
-
// We've imported your old cypress plugins here.
|
|
25
|
-
// You may want to clean this up later by importing these.
|
|
26
|
-
setupNodeEvents(on, config) {
|
|
27
|
-
return require('./cypress/plugins/index.js')(on, config)
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
})
|