Skip to content
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

feat(component-testing): changes to the driver and reporter preparing for runner-ct #14434

Merged
merged 15 commits into from
Jan 8, 2021

Conversation

elevatebart
Copy link
Contributor

@elevatebart elevatebart commented Jan 6, 2021

Reporter and Driver packages

changes necessary for runner-ct

driver

Since the specs are loaded using a dev-server, we need to be able to delegate the loading to webpack/vite/parcel.
To that effect, we allow to initialize runScripts in driver/src/cypress/scripts_utils.js to accept promises instead of file paths.

Also, there is a little fix on the script utils tests (it was not testing that eval was called).

reporter

To allow running of multiple specs files at once we need to add a history of runnables in the runnables store.
The runner-ct will allow to start & watch multiple specs at once so we will need to be able to run those through the reporter.

Accounting for this multi-spec mode means also having this runMode as a prop for the reporter component.

closes CT-201

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 6, 2021

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Jan 6, 2021



Test summary

9193 0 118 3Flakiness 1


Run details

Project cypress
Status Passed
Commit c5701dd
Started Jan 7, 2021 4:24 PM
Ended Jan 7, 2021 4:36 PM
Duration 12:15 💡
OS Linux Debian - 10.5
Browser Multiple

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/retries.ui.spec.js Flakiness
1 runner/cypress retries.ui.spec > opens attempt on each attempt failure for the screenshot, and closes after test passes

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@elevatebart
Copy link
Contributor Author

elevatebart commented Jan 6, 2021

I did not find where the tests for runnable.tsx were located.
Would anyone point me in the right direction or if I should even test the render function?

[EDIT] nevermind I found the integration tests

Copy link
Contributor

@JessicaSachs JessicaSachs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly spec matcher suggestions. One question about why we're returning a value from a seemingly unaffected line of code

Co-authored-by: Jessica Sachs <jess@jessicasachs.io>
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some comments

packages/reporter/src/main.tsx Outdated Show resolved Hide resolved
lmiller1990
lmiller1990 previously approved these changes Jan 7, 2021
Copy link
Contributor

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good

dmtrKovalenko
dmtrKovalenko previously approved these changes Jan 7, 2021
packages/reporter/src/main.tsx Show resolved Hide resolved
@elevatebart
Copy link
Contributor Author

Except for the percy snapshot that was added, all tests seems to be passing and the coverage does not seem diminished.
@bkucera @JessicaSachs can you re-review please?

@JessicaSachs JessicaSachs requested a review from a team January 7, 2021 22:58
@brian-mann brian-mann self-requested a review January 8, 2021 00:20
@brian-mann brian-mann merged commit dd559d9 into develop Jan 8, 2021
@elevatebart elevatebart deleted the feat/evergreen-reporter branch February 2, 2021 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants