Skip to content

Conversation

acuanico-tr-galt
Copy link
Collaborator

Solution description

Currently, parse_junit will populate the References field when it creates a new case from a JUnit report, but it will not update that field for existing cases matched via --case-matcher. Introduce an opt-in parameter so that, when enabled, parse_junit updates existing cases using values provided in JUnit properties, e.g. testrail_case_field = "refs:PRJCT-1234"

Changes

Added new options --update-existing-cases (yes|no) which will update references of matching cases, --update-strategy (append|replace) to which what update should be done whether to append or replace

Potential impacts

None. This is backwards compatible.

Steps to test

Try to upload a JUnit xml test result and use the above new options with --case-matcher. The references for matching test cases should be updated as expected and based on the defined strategy.

PR Tasks

  • PR reference added to issue
  • README updated
  • Unit tests added/updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant