mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 13:40:27 +02:00
refactor(tests): add auto-discovery test system for TTS plugins
- Create tests/plugins/ with auto-discovery fixtures and generic tests - Add conftest.py with plugin_ids, loaded_plugin, host_context fixtures - Add test_all_plugins.py with 3 test classes: - TestAllPluginsManifest: validates manifest structure - TestAllPluginsEngine: validates engine lifecycle contract - TestAllPluginsCapabilities: validates capability implementation - Update docs/testing.md with auto-discovery documentation - Plugin-specific tests remain in tests/test_*_plugin.py for integration New plugins in plugins/ are now automatically tested without manual test creation.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
"""Auto-discovery tests for TTS plugins.
|
||||
|
||||
This package contains generic tests that automatically run for every plugin
|
||||
in the plugins/ directory. Tests verify:
|
||||
- Manifest structure
|
||||
- Engine creation and dispose contract
|
||||
- Capability implementation
|
||||
|
||||
Plugin-specific tests remain in tests/test_<plugin>_plugin.py for
|
||||
integration with real dependencies (e.g., KPipeline for Kokoro).
|
||||
"""
|
||||
Reference in New Issue
Block a user