My acceptance tests are failing when using the air...
# ask-ai
m
My acceptance tests are failing when using the airbyte CI, spec, connection works but when I add the discovery it doesn't work anymore. No report is generated: INFO Connectors CI tests on source-connector-sample - Acceptance tests: failed (duration: 4.01s)
u
The issue you're experiencing could be due to a variety of factors. Here are a few things you can check: 1. Configuration File: Ensure that your
acceptance-test-config.yml
file is correctly set up. This file should be in the root folder of your connector and should contain the necessary information for running the tests. Here is an example of a minimal `acceptance-test-config.yml`:
Copy code
yaml connector_image: airbyte/source-some-connector:dev   acceptance_tests:     spec:       tests:         - spec_path: "some_folder/spec.yaml"
(Source: [Airbyte Documentation](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference)) 2. Test Setup: Make sure that the
discovery
test is correctly set up in your
acceptance-test-config.yml
file. It should look something like this:
Copy code
yaml discovery:     tests:       - config_path: "integration_tests/config.json"
(Source: [Airbyte Documentation](https://docs.airbyte.com/connector-development/testing-connectors/connector-acceptance-tests-reference#test-enforcements-in-high-test-strictness-level)) 3. Test Environment: Ensure that your test environment is correctly set up. If you're running the tests locally, you need to provide the connector configuration as a
config.json
file in a
.secrets
folder in the connector code directory. (Source: [Airbyte Documentation](https://docs.airbyte.com/connector-development/testing-connectors/#-ci)) 4. Connector Code: There might be an issue with the code of your connector. If the
spec
and
connection
tests are passing but the
discovery
test is failing, it could indicate a problem with how your connector is handling the discovery process. You might want to review your connector's implementation of the discovery command. If you're still having trouble, consider reaching out to the Airbyte community on [their forum](https://discuss.airbyte.io/t/1910) or [GitHub](https://github.com/airbytehq/airbyte/pulls) for more specific help.