• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PhilippRisius / pytest_nbgrader / 23692715867
80%

Build:
DEFAULT BRANCH: main
Ran 28 Mar 2026 07:34PM UTC
Jobs 3
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Mar 2026 07:33PM UTC coverage: 80.675% (+12.4%) from 68.293%
23692715867

push

github

web-flow
Test/quick wins (#31)

* test: add 44 tests for cases, dumper, loader + fix dump_subtask append

New test files:
- test_cases.py (25 tests): Timer, format_result, execute dispatches
  for function/code/type/ModuleSpec/NotImplementedError, dataclass defaults
- test_dumper.py (8 tests): dump_exercise, dump_task hierarchy,
  dump_subtask append mode regression test
- test_loader.py (10 tests): submit(Path) dispatch, print output
  verification for all dispatch paths, generic submit
- test_pytest_nbgrader.py: +1 test for __init__.py re-exports

Bug fix: dump_subtask append mode used "wb+" (truncates) instead of "ab".

Coverage: 45% -> 52%, dumper.py 62% -> 100%, cases.py 28% -> 55%.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add 31 prerequisites tests + fix writes() bug + strengthen weak tests

- tests/test_prerequisites.py: 31 new tests covering has_signature, writes, writes_file
- src/pytest_nbgrader/prerequisites.py: fix writes() unchecked stream bug
  (comparison loop ran on streams with expected=None, causing false failures)
- tests/test_cases.py: 3 new tests (exception propagation, output count mismatch)
- tests/test_dumper.py: 1 new test (append mode content verification)
- tests/test_loader.py: strengthen print output assertions

Coverage: 52% → 69%, prerequisites.py 11% → 100%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add 23 tests for harness, conftest, runner

- tests/test_harness.py: 8 tests for TestClass (prerequisites, execution, assertion)
- tests/test_conftest.py: 8 tests for hooks (addoption, sessionstart/finish, generate_tests) and fixtures
- tests/test_runner.py: 7 tests for TemporarySymlink, TemporarySymlinks, main()

Coverage: 69% → 81%, runner.py → 100%, conftest.py 18% → 68%, harness.py 0% → 59%

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Philipp Risius <philipp.e.risius@theo.physik.uni-giessen.de>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>

430 of 533 relevant lines covered (80.68%)

2.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.12 - 23692715867.1 28 Mar 2026 07:34PM UTC 9
80.68
GitHub Action Run
2 run-3.10 - 23692715867.2 28 Mar 2026 07:34PM UTC 9
80.68
GitHub Action Run
3 run-3.11 - 23692715867.3 28 Mar 2026 07:34PM UTC 9
80.68
GitHub Action Run
Source Files on build 23692715867
  • Tree
  • List 9
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4d3e3429 on github
  • Prev Build on main (#23671114911)
  • Next Build on main (#23693922725)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc