Skip to content

Commit c64ff62

Browse files
feat: add junit XML export to airbyte-cdk connector test command (#582)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: AJ Steers <[email protected]>
1 parent f03dc9f commit c64ff62

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

airbyte_cdk/cli/airbyte_cdk/_connector.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ def test(
162162
pytest_args.append("--collect-only")
163163

164164
pytest_args.append(str(test_file_path))
165+
166+
test_results_dir = connector_directory / "build" / "test-results"
167+
test_results_dir.mkdir(parents=True, exist_ok=True)
168+
junit_xml_path = test_results_dir / "standard-tests-junit.xml"
169+
pytest_args.extend(["--junitxml", str(junit_xml_path)])
170+
165171
click.echo(f"Running tests from connector directory: {connector_directory}...")
166172
click.echo(f"Test file: {test_file_path}")
167173
click.echo(f"Collect only: {collect_only}")

0 commit comments

Comments
 (0)