Skip to content

[WIP] bootstrap python tests#665

Closed
fpliger wants to merge 7 commits into
mainfrom
fpliger/663_bootstrap_py_tests
Closed

[WIP] bootstrap python tests#665
fpliger wants to merge 7 commits into
mainfrom
fpliger/663_bootstrap_py_tests

Conversation

@fpliger

@fpliger fpliger commented Aug 4, 2022

Copy link
Copy Markdown
Contributor

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

fpliger commented Aug 17, 2022

Copy link
Copy Markdown
Contributor Author

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