forked from reflex-dev/reflex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Benchmark with app harness (reflex-dev#2774)
- Loading branch information
1 parent
2a8d9d1
commit a06b570
Showing
12 changed files
with
1,237 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
"""Reflex benchmarks.""" | ||
|
||
WINDOWS_SKIP_REASON = "Takes too much time as a result of npm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"""Shared conftest for all benchmark tests.""" | ||
|
||
import pytest | ||
|
||
from reflex.testing import AppHarness, AppHarnessProd | ||
|
||
|
||
@pytest.fixture( | ||
scope="session", params=[AppHarness, AppHarnessProd], ids=["dev", "prod"] | ||
) | ||
def app_harness_env(request): | ||
"""Parametrize the AppHarness class to use for the test, either dev or prod. | ||
Args: | ||
request: The pytest fixture request object. | ||
Returns: | ||
The AppHarness class to use for the test. | ||
""" | ||
return request.param |
Oops, something went wrong.