qase-tms / qase-javascript

Qase TMS JavaScript SDK
https://developers.qase.io
49 stars 43 forks source link

Missing dependency module "chalk" for Qase Playwright Reporter when trying to run Playwright tests #207

Closed martin-pikalek closed 2 years ago

martin-pikalek commented 2 years ago

Screenshot 2022-05-24 at 13 38 32

Package.json dependencies: "@playwright/test": "^1.22.2" "playwright-qase-reporter": "^1.2.0-alpha.3"

Expected: Should be able to run tests with Playwright and Playwright Qase Reporter

1ivliev commented 2 years ago

@martin-pikalek Hi! Try using this assembly. Follow the instructions. https://github.com/1ivliev/playwright-qase Let us know if the problem persists. Have a great day!

martin-pikalek commented 2 years ago

@1ivliev Hello, with this assembly it was possible to run Playwright tests and report results into Qase. However in this assembly is "chalk" dependency in package.json so it was installed regardless of needs of qase-playwright-reporter.

As user my expected solution would be: Install qase-playwright-reporter and to use it I should not need to install manually other dependencies directly (as qase-playwright-reporter should download needed dependencies for usage during installation)

1ivliev commented 2 years ago

Thank you for your consideration. We have corrected this in this PR.

sarah-gelt commented 2 years ago

Hi @1ivliev - I am having the same problem as the OP, but it seems like a fix for this was merged a couple of weeks ago. Has that since been released, should it still be occurring in the version I have?

image
martin-pikalek commented 2 years ago

@1ivliev @sarah-gelt Hi everyone, I can confirm this issue. When trying to run tests with latest reporter, there is missing dependency error for "chalk".

"name": "playwright-qase-reporter", "version": "v1.2.0-alpha.3",

As I am looking on package.json of playwright-qase-reporter, there is "chalk" dependency but under "devDependencies". To be sure I also cleared my npm cache and reinstalled all dependencies. Folder with "chalk" was still missing in node_modules folder, so it was not installed with reporter itself. (only qaseio and form-data dependencies)

Screenshot 2022-06-25 at 17 35 52

But when I look into package.json of reporter on GitHub (on master branch), there is "chalk" dependency under "dependencies".

https://github.com/qase-tms/qase-javascript/blob/master/qase-playwright/package.json

Are we need to wait for new alpha version or is this just some mismatch?