Skip to content
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

[allure-jest] Add API to write environment info #979

Open
maks-rafalko opened this issue May 27, 2024 · 2 comments
Open

[allure-jest] Add API to write environment info #979

maks-rafalko opened this issue May 27, 2024 · 2 comments
Labels
theme:jest Jest related issue

Comments

@maks-rafalko
Copy link

maks-rafalko commented May 27, 2024

Is your feature request related to a problem? Please describe.

Currently, it's impossible to add environment information, displayed on the main page of Allure report: https://allurereport.org/docs/jest/#environment-information

Describe the solution you'd like

I would like to make it working out of the box in allure-jest reporter, for example adding this information in Jest configuration (https://allurereport.org/docs/jest-configuration/#allure-jest-configuration) or just by calling some public method on global.allure

Describe alternatives you've considered

N/A

Additional context

Currently, there is a method writeEnvironmentInfo() on AllureRuntime interface, but this is an internal thing which is not available for public usage in allure-jest.

Related to more common request: #181

@baev baev added the theme:jest Jest related issue label Jun 27, 2024
@baev
Copy link
Member

baev commented Jun 27, 2024

fixed in #1021

@maks-rafalko
Copy link
Author

maks-rafalko commented Jun 27, 2024

Though it would be nice to have .writeEnvironmentInfo({...}) public API for Jest, as currently we write there dynamic data, not only data from jest config. In referenced PR I see in allure-jest test only the case with config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:jest Jest related issue
Projects
None yet
Development

No branches or pull requests

2 participants