Overview of NNsight test coverage
mainThe tests/ directory is organized by subsystem coverage:
| File | Coverage |
|---|---|
test_tiny.py | Minimal NNsight wrapper smoke tests. |
test_lm.py | Comprehensive LanguageModel coverage (generation, gradients, scan, etc.). |
test_vllm.py | vLLM integration (requires GPU and --tp flag). |
test_vlm.py | VisionLanguageModel (multimodal) coverage. |
test_diffusion.py | DiffusionModel coverage using tiny_sd. |
test_envoys.py | Envoy proxy semantics (module access, alias paths). |
test_remote.py | NDIF remote execution (requires API key). |
test_serialization_*.py | Stress tests for pickling, lambdas, and dataclasses. |
test_local_*.py | Local simulation and recursion serialization. |
test_memory_cleanup.py | Verifies wrappers are garbage-collectable (hook/weak-ref leaks). |
Specialized Directories
tests/agent-evals/: LLM agent evaluation suite (run separately from standard pytest).tests/performance/: Benchmark scripts (not pytest-driven; seeperformance.md).tests/mymethods/: A mock user package used for serialization testing.