-
Notifications
You must be signed in to change notification settings - Fork 12
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
Setting up allure for integration tests #491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 88 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
19 | 1 | 68 | 0 |
Click to see the invalid file list
- .github/workflows/allure_report.yaml
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 96 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
20 | 6 | 70 | 0 |
Click to see the invalid file list
- python/cli/allure_add_default_for_missing_results/init.py
- python/cli/allure_add_default_for_missing_results/allure_add_default_for_missing_results.py
- python/cli/pyproject.toml
- python/pytest_plugins/allure_pytest_collection_report/init.py
- python/pytest_plugins/allure_pytest_collection_report/_plugin.py
- python/pytest_plugins/allure_pytest_collection_report/pyproject.toml
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license-eye has checked 96 files.
Valid | Invalid | Ignored | Fixed |
---|---|---|---|
20 | 6 | 70 | 0 |
Click to see the invalid file list
- python/cli/allure_add_default_for_missing_results/init.py
- python/cli/allure_add_default_for_missing_results/allure_add_default_for_missing_results.py
- python/cli/pyproject.toml
- python/pytest_plugins/allure_pytest_collection_report/init.py
- python/pytest_plugins/allure_pytest_collection_report/_plugin.py
- python/pytest_plugins/allure_pytest_collection_report/pyproject.toml
Use this command to fix any missing license headers
```bash
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix
</details>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Minor nits :)
As of newlines, https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline i think this might help reason about why its required:D
python/cli/allure_add_default_for_missing_results/allure_add_default_for_missing_results.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for writing this how-to guide! My review is mostly nitpicks to make the style checker happy :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, please get a review from @weiiwang01 as the senior review in this case
Thank you for adding this, I think it will help us improve our tests a lot! |
Overview
Integrated Allure tool for visualization of integration tests.
Rationale
This integration is required so that we can analyse the reasons for failure of integration tests better.
Workflow Changes
python/pytest-plugins
for setting the default result status as unknown for all tests during collection time.allure-add-default-for-missing-results
is defined to merge the results obtained from the collection time with the actual results.Checklist
urgent
,trivial
,complex
)Results
Here's an example report from github-runners repo using this workflow.