#3179 chore: Reorganize tests so contrib and sample modules are tested independently from the core logic
Pull request opened by
edgarrmondragon
## Summary by Sourcery
Reorganize the test infrastructure to run core, contrib, external, and sample module tests independently and streamline CI and configuration accordingly.
New Features:
• Add dedicated nox sessions for core tests (tests), external tests (test-external), sample module tests (test-modules), benchmarks, and lowest-requirements check
• Introduce new pytest markers and auto-mark tests based on directory (contrib, external, packages)
Enhancements:
• Implement a shared _run_pytest helper in noxfile for unified pytest invocation and coverage handling
• Simplify dependency installation by replacing per-extra flags with --all-extras and consolidate extras lists
• Replace concrete classes in core tests with generic DummyInlineMapper and DummyTarget
• Remove the deprecated merge_config_sources function and its tests from dict_config
Build:
• Define a new 'packages' extras group in pyproject.toml for workspace sample taps and targets
• Refine pytest filter expressions and markers in pyproject.toml
CI:
• Add test-modules session to GitHub Actions matrix and include session name in coverage artifact names
• Parameterize UV_VERSION and adjust nox invocation for test-external session in CI configuration
Documentation:
• Update CONTRIBUTING.md and testing.md to reference test-external and tests/packages instead of tests/samples
meltano/sdk