allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

I receive "Error: No tests found" trying to perform selective run of playwright autotests

Open dolkonsVK opened this issue 11 months ago • 3 comments

Describe the bug In my project repository tests are organized the following way:

project1
   - tests/...
   - playwright.config.ts
project2
   - tests
   - playwright.config.ts
project3
   - tests
   - playwright.config.ts

Each playwright.config.ts file has grep: testPlanFilter(), added according to the documentation (https://github.com/allure-framework/allure-js/blob/main/packages/allure-playwright/README.md#selective-test-execution) but every time I try to selectively run tests on either CICD or locally (through the testplan.json file) I'm always getting the error "Error: No tests found". It seems like somehow the parsing of tests selectors does not work as expected. Any help, advice or some information would be really appreciated, thx.

To Reproduce Steps to reproduce the behavior:

  1. Use playwright framework
  2. Try to organize the test the way described above
  3. Try to run tests locally through the testplan.json

Expected behavior Tests are running as expected

Additional context pw version: "@playwright/test": "^1.41.0", The content of "testplan.json" is the following: {"version":"1.0","tests":[{"id":123,"selector":"tests/tests.spec.ts#smth from describe GIVEN smth WHEN smth THEN smth"}]}

dolkonsVK avatar Feb 26 '24 06:02 dolkonsVK