-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[IATR](M1.0) Test runner filtering #24855
Comments
Hey team! Please add your planning poker estimate with Zenhub @amehta265 @astone123 @lmiller1990 @marktnoonan @mike-plummer @rockindahizzy @ZachJW34 |
Note: we have some logic around this already for Cypress Studio, which does a kind of "only run this test" when we are in "Studio" mode. I worked on Studio, so I can definitely provide some ideas. I'll write some below. This requires hacking into Mocha internals. Luckily, Cypress does this already, so most of the patterns exist. The App (Vue) and Reporter (React) generally communicate via the EventManager, so that will be how you implement this (it'll be similar to the workflow Studio uses). It might be worth doing a small technical brief/prototype, or at least having a good think about how to implement this before you start coding. I think this is quite a tricky task, but a good opportunity to learn how the core of Cypress (driver, reporter, runner) work. I'd really recommend a quick prototype and then coming up with some ideas and running it by someone who knows the Cypress runner code well before writing a lot of code. Here's some useful things that you might want to look at and considering when implementing this.
|
How does this UI wrap when the Command Log is smaller or there are over 99 tests? |
Co-authored-by: Emily Rohrbough <emilyrohrbough@users.noreply.github.com> Co-authored-by: Mark Noonan <mark@cypress.io> Co-authored-by: Mike Plummer <mikep@cypress.io> Closes #24855
Add ability to filter tests for a spec in the runner to only the specs that failed in the cloud
Solution for filtering tests in the runner
To filter the tests in a way that will allow for the most flexibility with the developer experience, the following pattern should be followed:
runId
will be passed to the spec runner that will indicate which Cloud run should be used to filter the testsrunId
and spec path and will get back a list of test names and their status (PASSED, FAILED, PENDING, etc.)Background of solution can be found in recorded Zoom found in internal Cypress Slack initiative channel here
Requirements
/specs/runner
url to allow filtering tests by runrunId={runId}
to enable filterpackages/reporter/src/header/header.tsx
) to indicate the tests are being filteredClickup: https://app.clickup.com/t/18033298/PM-2546
The text was updated successfully, but these errors were encountered: