-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release/qase cypress 2.2.0 #697
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- `qase.title` - set the test title - `qase.fields` - set the test fields - `qase.suite` - set the test suite - `qase.comment` - set the test comment - `qase.parameters` - set the test parameters - `qase.groupParameters` - set the test group parameters - `qase.ignore` - ignore the test in Qase ```ts it('test', () => { qase.title('Title'); qase.fields({ field: 'value' }); qase.suite('Suite'); qase.comment('Comment'); qase.parameters({ param: 'value' }); qase.groupParameters({ group: { param: 'value' } }); qase.ignore(); cy.visit('https://example.com'); });
- `qase.step` - add a step to the test ```ts it('test', () => { qase.step('Step 1', () => { cy.visit('https://example.com'); }); }); ```
- `qase.attach` - add an attachment to test or step ```ts it('test', () => { qase.attach({ paths: '/path/to/file' }); qase.step('Step 1', () => { cy.visit('https://example.com'); qase.attach({ name: 'attachment.txt', content: 'Hello, world!', contentType: 'text/plain' }); }); }); ```
Update the configuration section
- Support `QaseIgnore` tag. If the test case has the `QaseIgnore` tag, the reporter will not send the result to the Qase TMS. ```cucumber @QaseIgnore Scenario: simple test ``` - Improved error handling.
If the test case has the `ignore` tag, the reporter will not send the result to the Qase TMS. ```ts const q = qase.ignore().create(); test.meta({ ...q })( 'test', async (t) => { await t; }, ); ```
- `qase.title` - set the test title - `qase.fields` - set the test fields - `qase.suite` - set the test suite - `qase.comment` - set the test comment - `qase.parameters` - set the test parameters - `qase.groupParameters` - set the test group parameters - `qase.ignore` - ignore the test in Qase ```ts it('test', () => { qase.title('Title'); qase.fields({ field: 'value' }); qase.suite('Suite'); qase.comment('Comment'); qase.parameters({ param: 'value' }); qase.groupParameters({ group: { param: 'value' } }); qase.ignore(); cy.visit('https://example.com'); });
- `qase.step` - add a step to the test ```ts it('test', () => { qase.step('Step 1', () => { cy.visit('https://example.com'); }); }); ```
- `qase.attach` - add an attachment to test or step ```ts it('test', () => { qase.attach({ paths: '/path/to/file' }); qase.step('Step 1', () => { cy.visit('https://example.com'); qase.attach({ name: 'attachment.txt', content: 'Hello, world!', contentType: 'text/plain' }); }); }); ```
… release/qase-cypress-2.2.0
apetrosyan1613
approved these changes
Oct 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added the ability to specify a test metadata in tests:
qase.title
- set the test titleqase.fields
- set the test fieldsqase.suite
- set the test suiteqase.comment
- set the test commentqase.parameters
- set the test parametersqase.groupParameters
- set the test group parametersqase.ignore
- ignore the test in QaseAdded the ability to add steps in tests:
qase.step
- add a step to the testAdded the ability to add attachments to tests or steps:
qase.attach
- add an attachment to test or step