Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 4 additions & 1 deletion examples/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ These examples provide necessary configuration to:

The `adhoc` layout is the old and problematic layout where you can mix up the installed code
with the source code. However, these examples will provide correct configuration even for
the `adhoc` layout.
the `adhoc` layout. Its coverage configuration uses ``source_pkgs = example`` to measure
the installed package without also measuring unrelated files in the test directory.
The ``changedir = tests`` setting is still needed to keep the source checkout out of
Python's import path, so tests exercise the installed package.

The `src` layout configuration is less complicated, have that in mind when picking a layout
for your project.
4 changes: 1 addition & 3 deletions examples/adhoc-layout/.coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ source =

[run]
branch = true
source =
example
.
source_pkgs = example

[report]
precision = 2
Expand Down