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 inline tabs on Increase Test Coverage page for commands on different systems #1228

Merged
merged 4 commits into from
Nov 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions testing/coverage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,23 +87,31 @@ just built, and this built version of Python will not see packages installed
into your default version of Python. One option is to use a virtual environment
to install coverage.

On Unix run::
.. tab:: Unix

./python -m venv ../cpython-venv
source ../cpython-venv/bin/activate
pip install coverage
.. code-block:: shell
lancegoyke marked this conversation as resolved.
Show resolved Hide resolved

On :ref:`most <mac-python.exe>` macOS systems run::
./python -m venv ../cpython-venv
source ../cpython-venv/bin/activate
pip install coverage

./python.exe -m venv ../cpython-venv
source ../cpython-venv/bin/activate
pip install coverage
.. tab:: macOS

On Windows run::
On :ref:`most <mac-python.exe>` macOS systems run:

python.bat -m venv ..\\cpython-venv
..\\cpython-venv\\Scripts\\activate.bat
pip install coverage
.. code-block:: shell

./python.exe -m venv ../cpython-venv
source ../cpython-venv/bin/activate
pip install coverage

.. tab:: Windows

.. code-block:: dosbatch
lancegoyke marked this conversation as resolved.
Show resolved Hide resolved

python.bat -m venv ..\\cpython-venv
..\\cpython-venv\\Scripts\\activate.bat
pip install coverage

You can now use python without the ./ for the rest of these instructions, as
long as your venv is activated. For more info on venv see `Virtual Environment
Expand Down
Loading