#9534 feat: Support `meltano config test` for loaders
Pull request opened by
edgarrmondragon
## Description
SSIA.
Docs:
https://deploy-preview-9534--meltano.netlify.app/reference/command-line-interface#testing-plugin-configuration.
## Related Issues
• Closes
#6855
## Summary by Sourcery
Support loader (target) plugin configuration testing in meltano config test by introducing a LoaderTestService, incorporating it into the factory, generating tester Singer messages, and updating documentation and tests accordingly
New Features:
• Add LoaderTestService for testing loader (target) plugin configurations via meltano config test
• Extend PluginTestServiceFactory to include support for loader plugins
Enhancements:
• Generate Singer test messages (SCHEMA, RECORD, STATE, and optional ACTIVATE_VERSION) for loader validation
• Implement loader validation logic that streams messages to the plugin and checks for errors
Documentation:
• Update CLI documentation to describe support for testing loader plugins with meltano config test
Tests:
• Add unit tests for LoaderTestService covering success, failure, and activate-version capability scenarios
• Adjust PluginTestServiceFactory tests to expect LoaderTestService and mark mapper support as unsupported
## Summary by Sourcery
Enable testing of loader (target) plugin configurations via
meltano config test
by adding LoaderTestService, integrating it into the plugin test factory, generating Singer test messages for validation, and updating documentation and tests accordingly
New Features:
• Add support for testing loader plugin configurations via
meltano config test
by introducing LoaderTestService and extending PluginTestServiceFactory
Enhancements:
• Generate and stream Singer messages (SCHEMA, RECORD, STATE, and optional ACTIVATE_VERSION) for loader validation
• Implement loader validation logic to detect processing errors from output and return codes
Documentation:
• Document loader plugin configuration testing and activate-version capability in the CLI reference
Tests:
• Add unit tests for LoaderTestService covering success, failure, empty output, and activate-version scenarios, and update factory tests to expect loader support and mark mappers unsupported
meltano/meltano