Giter VIP home page Giter VIP logo

Comments (8)

BrianMar avatar BrianMar commented on May 21, 2024

Amending this, since it appears to not be the dashes.

If I set the "testMatch to the full path to this file, Playwright does not find any tests:
CommandScript00.playwright-test.ts

However, if I change the testName and file name to this, it works:
cmdscript00.playwright-test.ts

I'm not sure if it's the capitalization (Running in "git bash" on Windows, or a file length issue.

from playwright.

yury-s avatar yury-s commented on May 21, 2024

Can you please share complete reproduction project, so that we could try it locally?

from playwright.

BrianMar avatar BrianMar commented on May 21, 2024

Talking to Yuri internally for a private repo.

I'm still working on understanding what the delineation between passing and failing cases is. It seems to be inconsistent. But "test.playwright-test.ts" always seems to pass, and longer names or those with "-" do not. I'll see if I can binary-search this to a length issue.

from playwright.

BrianMar avatar BrianMar commented on May 21, 2024

This is looking like a timing issue with dynamically generated test files. My "globalSetup" is writing a bunch of files, and these invoke functions which create the tests.

If I dynamically generate the files in "globalSetup", then I get "no tests found". But if I could the generated files to another name, then the tests are found.

from playwright.

BrianMar avatar BrianMar commented on May 21, 2024

It appears I've hit the same issues as this Stack Overflow post:

https://stackoverflow.com/questions/78158808/dynamically-generate-playwright-test-asynchronously-shows-no-test-found

from playwright.

yury-s avatar yury-s commented on May 21, 2024

This is looking like a timing issue with dynamically generated test files. My "globalSetup" is writing a bunch of files, and these invoke functions which create the tests.

Can you extract relevant parts into a minimal project, so that we could run it locally and reproduce the issue?

from playwright.

BrianMar avatar BrianMar commented on May 21, 2024

I'm closing this issue, since I've fixed the timing issue. Opening another one about a weird globbing behavior.

from playwright.

BrianMar avatar BrianMar commented on May 21, 2024

Closing

from playwright.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.