Skip to content

Commit b6de2c2

Browse files
committed
Cover the JUnit report of a passing pipelines test run
1 parent e5cfb81 commit b6de2c2

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<testsuites>
3+
<testsuite name="my_pipeline" tests="1" failures="0" errors="0" skipped="0">
4+
<testcase classname="tests.test_orders" name="test_valid_order" time="1.000"></testcase>
5+
</testsuite>
6+
</testsuites>

‎acceptance/pipelines/test/results/output.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
77
View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?w=[WORKSPACE_ID]
88

99
=== All selected tests pass
10-
>>> [CLI] pipelines test my_pipeline tests/test_orders.py::test_valid_order
10+
>>> [CLI] pipelines test my_pipeline tests/test_orders.py::test_valid_order --junit-xml out.passed.xml
1111
Recommendation: This command runs the last deployed version of the code
1212

1313
If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included.
@@ -19,6 +19,7 @@ Running tests...
1919
tests/test_orders.py::test_valid_order PASSED (1.00s)
2020

2121
1 test: 1 passed, 0 failed, 0 skipped, 0 errors
22+
JUnit report: out.passed.xml
2223

2324
>>> print_requests.py --get //events
2425
{

‎acceptance/pipelines/test/results/script‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ trace $CLI pipelines deploy
22
rm "$OUT_REQUESTS"
33

44
title "All selected tests pass"
5-
trace $CLI pipelines test my_pipeline tests/test_orders.py::test_valid_order
5+
trace $CLI pipelines test my_pipeline tests/test_orders.py::test_valid_order --junit-xml out.passed.xml
66
trace print_requests.py --get //events
77

88
title "Failed, errored, and skipped tests"

0 commit comments

Comments
 (0)