Skip to content

Conversation

@naresha
Copy link
Contributor

@naresha naresha commented Jun 9, 2021

Context

Checklist

@github-actions github-actions bot added the theme:junit-platform JUnit 5 related issue label Jun 9, 2021
@baev
Copy link
Member

baev commented Jun 9, 2021

We can't use uniqueId as testCaseId as it will break parameterised tests: uniqueId is differ for different parameters but testCaseId should be the same no matter what parameter values are provided.

So far Allure has:

  • testCaseId (same for the same test cases, used in Allure TestOps to determinate test cases). If not specified, md5(fullName) is used.
  • historyId (aka historyKey): used for determinate retries within a test run. In case of same historyId results are merged, and only the last one is shown. If not specified, calculated as md5(testCaseId, parameterValues, environment)

@naresha
Copy link
Contributor Author

naresha commented Jun 10, 2021

Thanks for sharing the details of testCaseId.
Do you have any suggestions on alternative ways to pass unique id?

@baev
Copy link
Member

baev commented Jun 10, 2021

simply put it into labels, you can pick any key you like, for example JUNIT5_UNIQUE_ID

@naresha
Copy link
Contributor Author

naresha commented Jun 10, 2021

Thanks for your suggestion.

@baev baev added the type:improvement Change that improves some user experience but can't be considered as a new feature label Jun 10, 2021
@baev baev merged commit 87e5e9d into allure-framework:master Jun 10, 2021
@baev
Copy link
Member

baev commented Jun 10, 2021

@naresha thanks!

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

Labels

theme:junit-platform JUnit 5 related issue type:improvement Change that improves some user experience but can't be considered as a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants