Skip to content

Commit da9dcbc

Browse files
committed
Update README.md files and __init__.py documentation
1 parent 8e778e7 commit da9dcbc

File tree

4 files changed

+28
-21
lines changed

4 files changed

+28
-21
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
- `assert_not_imported` can also take a string
2121
- `redirect_stdin` also wraps `builtins.input`
22+
- various docstrings and README.md file contents
2223

2324

2425
## [1.4.0] - 2025-10-09

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To build `autograder.zip`, run this command from an assignment's directory:
1818

1919
## Documentation
2020

21-
See the [examples](examples) directory for documentation and test assignments.
21+
To get started, read the [examples](examples) directory and [API documentation](https://jmu-cs.github.io/jmu_pytest_utils/).
2222

2323
See the [CHANGELOG](CHANGELOG.md) for release notes and recently added features.
2424

examples/README.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,9 @@ The following "assignments" are used for testing `jmu_pytest_utils` and provided
1212
* [8_test_coverage](8_test_coverage) -- grading student's tests
1313
* [9_leaderboard](9_leaderboard) -- Gradescope leaderboard
1414

15-
1615
## API Docs
1716

18-
Please refer to the docstrings in the files below.
19-
20-
Most tests will import the following two modules:
21-
22-
* [`jmu_pytest_utils.common`](../jmu_pytest_utils/common.py)
23-
* [`jmu_pytest_utils.decorators`](../jmu_pytest_utils/decorators.py)
24-
25-
Tests that analyze the student's *code* import:
26-
27-
* [`jmu_pytest_utils.audit`](../jmu_pytest_utils/audit.py)
28-
29-
Tests that analyze the student's *tests* import:
30-
31-
* [`jmu_pytest_utils.coverage`](../jmu_pytest_utils/coverage.py)
32-
33-
And of course, you might also import pytest:
34-
35-
* [API Reference - pytest documentation](https://docs.pytest.org/en/stable/reference/reference.html)
36-
17+
The [API documentation](https://jmu-cs.github.io/jmu_pytest_utils/) is automatically built with [pdoc](https://pdoc.dev/) whenever there are new commits on the main branch.
3718

3819
## Configuration
3920

jmu_pytest_utils/__init__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
11
"""A pytest plugin for building and running Gradescope autograders.
22
33
Source: https://github.com/JMU-CS/jmu_pytest_utils/
4+
5+
## Modules to Import
6+
7+
Most tests will import:
8+
9+
* `jmu_pytest_utils.common` – style checking and I/O support
10+
* `jmu_pytest_utils.decorators` – `@required` and `@weight`
11+
12+
Some tests will import:
13+
14+
* `jmu_pytest_utils.audit` – analyze the student's source code
15+
* `jmu_pytest_utils.coverage` – analyze the student's unit tests
16+
* `jmu_pytest_utils.meta` – analyze the submission metadata
17+
18+
And of course `pytest`:
19+
20+
* [API Reference - pytest documentation](https://docs.pytest.org/en/stable/reference/reference.html)
21+
22+
## Command-Line Tools
23+
24+
Tests don't need to import:
25+
26+
* `jmu_pytest_utils.builder` – autograder.zip build script
27+
* `jmu_pytest_utils.limit` – enforce the submission limit
28+
* `jmu_pytest_utils.plugin` – pytest plugin for results.json
429
"""

0 commit comments

Comments
 (0)