From 8d0dc72ca222b984cf0e8547cd5ea0f0549b0488 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Fri, 8 Dec 2023 16:28:45 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20Enable/document=20profiling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README-DEV.md | 16 ++++++++++++++++ requirements-test.txt | 1 + 2 files changed, 17 insertions(+) create mode 100644 README-DEV.md diff --git a/README-DEV.md b/README-DEV.md new file mode 100644 index 0000000..6d1f17d --- /dev/null +++ b/README-DEV.md @@ -0,0 +1,16 @@ +``` +pip install -r requirements-test.txt +``` + +To run tests: +``` +pytest +``` + +To run a test with profiling: + +1. Make sure graphviz is installed +2. Run pytest with with profiling enabled: + ``` + pytest --profile-svg -k test_page_info + ``` diff --git a/requirements-test.txt b/requirements-test.txt index e079f8a..6f0f369 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1 +1,2 @@ pytest +pytest-profiling