-
Notifications
You must be signed in to change notification settings - Fork 123
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
[Cypress] Change Log Level to Debug in parseTestPlan Function #1150
Comments
What is the reason for having an invalid test plan? Could you please provide steps to reproduce the problem? |
Hey Dmitry, Thanks for the quick response! I'm using allurectl to handle it, rather than create the file myself, as suggested in the docs here: https://docs.qameta.io/allure-testops/ecosystem/allurectl/
I see the above issue when using allurectl watch when the file does not exist at all. |
same issue here, this is the reason why i'm still on version 2.15.1 |
Could you please specify the |
@baev here is part of my log on
|
hi, could you please shed a bit more light here?
cheers |
@cheshi-mantu hi there.
just execution Playwright tests in Docker container with uploading results to Allure Test Ops by allurectl (jfyi, with just in case, here is part of my
|
My setup is similar, I'm testing a new framework on my local machine: "testops": ".\allurectl_windows_amd64.exe watch --endpoint https://{env}.testops.cloud --results cypress/reports/allure-results --token {token} --project-id {id} -- npm run cy:run", And I kick it off with 'npm run testops' Here are my dependencies if it helps:
|
just execution Playwright tests in Docker container with uploading results to Allure Test Ops by allurectl (jfyi, with "allure-playwright": "^2.15.1" there is no ENOENT error in the same scenario) what are the ALLURE_ variables defined before allurectl start in the context of the execution of allurectl? allurectl uses the home directory of the current user to store the data related to its parameters like ~/.allure if there is no access rights for the user, then testplan.json won't be read by the tool. |
@Gerry-Mc what is {path} here? Is it added manually or os it real output? |
local, don't check it in our CI (openshift) yet.
here is part of my Dockerfile:
|
allurectl uses ~/.allure directory |
@cheshi-mantu so... what should I try ? Some changes in Dockerfile or add some env. variables to Docker container ? |
@cheshi-mantu Sorry for the confusion, that's manually edited, that's the project path on my local machine, all the bracketed elements are local, {id} etc. @StanislavGrishaev You can raise the log level above error, by adding '-log fatal' before 'watch' in your command, but you may miss important messages. If you want to add the proposed change as an interim solution you can patch it into the dockerfile with something like :
|
alright, |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Description
The
parseTestPlan
function inallure-js-commons
currently logs an error with the stack trace when it fails to parse the test plan. This can be overly verbose and may not be necessary for all use cases. We propose changing the log level fromerror
todebug
to provide cleaner log output while retaining the ability to diagnose issues when needed.Current Behavior
When the
parseTestPlan
function encounters an error, it logs the following message:Rationale
debug
results in cleaner log output, making it easier to identify relevant information.Steps to Reproduce
parseTestPlan
function with an invalid test plan path.Suggested Solution
Update the
parseTestPlan
function innode_modules/allure-js-commons/dist/cjs/sdk/reporter/testplan.js
as follows:Additional Context
This change was implemented locally and tested to ensure it suppresses the stack trace while still logging the error message. A patch file has been created using
patch-package
to apply this change.Thank you for considering this improvement. Please let me know if there are any questions or if further adjustments are needed.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: