From 609629c6d3e6fae263c498258e4dc7e8ff7dee30 Mon Sep 17 00:00:00 2001 From: Andy Shultz Date: Thu, 28 Sep 2023 13:51:26 -0400 Subject: [PATCH 1/2] docs: actually pull the eye to the most weird and critical instruction --- docs/concepts/testing/testing.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/concepts/testing/testing.rst b/docs/concepts/testing/testing.rst index bf02801325..24b799ef65 100644 --- a/docs/concepts/testing/testing.rst +++ b/docs/concepts/testing/testing.rst @@ -83,6 +83,8 @@ Test Locations Running Tests ============= +**Unless otherwise mentioned, all the following commands should be run from inside the lms docker container.** + You can run all of the unit-level tests using this command:: paver test @@ -94,9 +96,6 @@ Note - paver -h -Note - -Unless otherwise mentioned, all the following commands should be run from inside lms docker container. - Running Python Unit tests ------------------------- From 3d00f5a276f1167d92fae7bc335ba3ed7e40e3cc Mon Sep 17 00:00:00 2001 From: Andy Shultz Date: Thu, 28 Sep 2023 14:19:06 -0400 Subject: [PATCH 2/2] docs: also paver test no longer exists, remove it paver for js test is discussed below separately python testing is covered well in the next section, running all python tests is not useful for development loops --- docs/concepts/testing/testing.rst | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/docs/concepts/testing/testing.rst b/docs/concepts/testing/testing.rst index 24b799ef65..1297b0ee3b 100644 --- a/docs/concepts/testing/testing.rst +++ b/docs/concepts/testing/testing.rst @@ -85,16 +85,6 @@ Running Tests **Unless otherwise mentioned, all the following commands should be run from inside the lms docker container.** -You can run all of the unit-level tests using this command:: - - paver test - -This includes python, JavaScript, and documentation tests. - -Note - -`paver` is a scripting tool. To get information about various options, you can run the this command:: - - paver -h Running Python Unit tests ------------------------- @@ -106,8 +96,8 @@ Pytest (and all of the plugins we use with it) has a lot of options. Use `pytest .. _pytest: https://pytest.org/ -Running a Single Test -~~~~~~~~~~~~~~~~~~~~~ +Running Python Test Subsets +~~~~~~~~~~~~~~~~~~~~~~~~~~~ When developing tests, it is often helpful to be able to really just run one single test without the overhead of PIP installs, UX builds, etc.