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

Add testbed support for Textual backend #2663

Open
freakboy3742 opened this issue Jun 17, 2024 · 0 comments
Open

Add testbed support for Textual backend #2663

freakboy3742 opened this issue Jun 17, 2024 · 0 comments
Labels
enhancement New features, or improvements to existing features.

Comments

@freakboy3742
Copy link
Member

What is the problem or limitation you are having?

The textual backend is not currently tested by the testbed API. We should be performing automated GUI tests of the textual backend.

Describe the solution you'd like

It should be possible to run briefcase run --test in the testbed folder and get a test and coverage report.

This should then be integrated into CI.

This will likely require a second testbed app, as Briefcase deploys to "windows/linux/macOS", and we're already using those platforms to perform GUI tests. Briefcase supports having multiple apps in a single project, so this will likely only require adding a new app configuration for the desktop platforms, and adding a -a argument wherever we're currently running testbed.

Describe alternatives you've considered

There isn't really an alternative here - having a test suite is a hard requirement for the textual backend to become a serious Toga option.

Additional context

The biggest complication is that textual takes over the console, so we lose progress and console output while running the test suite.

Textual has a test mode that might be useful.

@freakboy3742 freakboy3742 added the enhancement New features, or improvements to existing features. label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

1 participant