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 the ability to test web apps #1285

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
1 change: 1 addition & 0 deletions changes/1166.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support for running project tests was added to the static web backend
3 changes: 2 additions & 1 deletion docs/reference/platforms/web/static.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ Web projects use a single 32px ``.png`` format icon as the site icon.
Splash Image format
===================

Web projects do not support splash screens or installer images.
Web projects use a single ``.png`` image as the splash screen. The image can be
any size; a size of approximately 250x200 px is recommended.

Application configuration
=========================
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ install_requires =
dmgbuild >= 1.6, < 2.0; sys_platform == "darwin"
GitPython >= 3.1, < 4.0
platformdirs >= 2.6, < 4.0
# 2023-05-09: Playwright isn't supported on Python 3.12+
playwright >= 1.33.0, < 2.0; python_version < "3.12"
psutil >= 5.9, < 6.0
requests >= 2.28, < 3.0
rich >= 12.6, < 14.0
Expand Down
4 changes: 0 additions & 4 deletions src/briefcase/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,12 @@ class LogFilter:

def __init__(
self,
log_popen,
clean_filter,
clean_output,
exit_filter,
):
"""Create a filter for a log stream.

:param log_popen: The Popen object for the stream producing the logs.
:param clean_filter: A function that will filter a line of logs, returning a
"clean" line without any log system preamble.
:param clean_output: Should the output displayed to the user be the "clean"
Expand All @@ -32,7 +30,6 @@ def __init__(
exit status of the process if an exit condition has been detected, or None
if the log stream should continue.
"""
self.log_popen = log_popen
self.returncode = None
self.clean_filter = clean_filter
self.clean_output = clean_output
Expand Down Expand Up @@ -150,7 +147,6 @@ def _stream_app_logs(
)

log_filter = LogFilter(
popen,
clean_filter=clean_filter,
clean_output=clean_output,
exit_filter=exit_filter,
Expand Down
Loading
Loading