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

[WIP] bootstrap python tests #665

Closed
wants to merge 7 commits into from
Closed

Conversation

fpliger
Copy link
Contributor

@fpliger fpliger commented Aug 4, 2022

Close #617

antocuni added a commit that referenced this pull request Aug 10, 2022
)

This PR is about integration tests: they use playwright to load HTML pages in the browser and check that PyScript works as intended, as opposed to unit tests like the ones being introduced by #665 and #661.

The main goal of this PR is to introduce some machinery to make such tests easier to write, read and maintain, with some attention to capture enough information to produce useful error messages in case they fail in the CI.

In order to use the machinery, you need to subclass tests.support.PyScriptTest, which provides several useful API calls in the form self.xxx().

See the full description here:
#663

Co-authored-by: Mariana Meireles <marian.meireles@gmail.com>
Co-authored-by: mariana <marianameireles@protonmail.com>
@fpliger fpliger mentioned this pull request Aug 17, 2022
@fpliger
Copy link
Contributor Author

fpliger commented Aug 17, 2022

closing this PR in favor of #697

@fpliger fpliger closed this Aug 17, 2022
@tedpatrick tedpatrick deleted the fpliger/663_bootstrap_py_tests branch October 18, 2022 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Create infrastructure and write the first Python unit test
1 participant