quasarframework / quasar-testing

Testing Harness App Extensions for the Quasar Framework 2.0+
https://testing.quasar.dev
MIT License
179 stars 65 forks source link

Cypress coverage does not work on windows #342

Closed CheIIau closed 1 year ago

CheIIau commented 1 year ago

Hi. I cloned test-project-vite folder from this repo and trying to see coverage after e2e test completes. But after the test is completed, I see the message image window. coverage is undefined and the table in index.html in coverage folder is empty. image Am i missing something or is this a bug? Just in case, I created a separate repo to reproduce the case. https://github.com/CheIIau/quasar-cypress

UPDATE: Clone the same repo on my ubuntu machine. Everything works there. So this is a Windows specific issue.

Software version

OS: Windows 11 Node: 18.16 NPM: 9.5.1

CheIIau commented 1 year ago

Nevermind, i think i figured it out :)

IlCallo commented 1 year ago

The best type of issues, the ones that solve themselves 🤣

Could you share which was your actual problem and solution? In case others bump in the same one

CheIIau commented 1 year ago

It was my mistake. Due to multiple commands with cross-env (such as test:e2e) do not work properly on windows ("cypress open" command is never get executed) I ran "quasar dev" and "cypress open" separately. And somehow i forgot to add NODE_ENV=test to the script