Update Pytest to Generate JUnit XML for Import into Testery
Step 1: Install the pytest-xdist Plugin
pip install pytest-xdistStep 2: Update Your Pytest Configuration
[pytest] junit_family = xunit2 junit_suite_name = Your_Test_Suite_Name junit_logging = all junit_log_passing_tests = True junit_log_truncate = True[tool.pytest.ini_options] junit_family = 'xunit2' junit_suite_name = 'Your_Test_Suite_Name' junit_logging = 'all' junit_log_passing_tests = true junit_log_truncate = true
Step 3: Run Your Pytest Tests
Step 4: Upload Your Test Results to Testery
Last updated
Was this helpful?