-
Notifications
You must be signed in to change notification settings - Fork 41
Bugfix autoresolve test reference on different stage name #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix autoresolve test reference on different stage name #35
Conversation
(Nonblocking review as I unfortunately, haven't been able to follow the development of this plugin for the past years.) I think this could potentially create two problems:
I hope this helps! These are just some perspectives for you to consider. 🙂 |
Thanks for the feedback @andreituicu ! I will take it into consideration. Moving the PR to draft mode to tackle this ^. |
7eb5b65
to
535d307
Compare
535d307
to
3241387
Compare
@andreituicu again thanks for your feedback! I updated the PR with a different approach (non-replacing the test.getId by the test.getTransformedFullDisplayName) to ensure backward compatibility. This new approach is based on to query the Jira server to detect which issues should be transitioned if there is no match on querying the map (based on different stages names) |
Highlights
TestObject.getId()
method to setup the mapping between Jira tickets and failed testsautoresolve
capabilities will not work as expected due to some fixed tests could not be resolved, apparently because the fixed tests were executed on a different branch than the original test failuregetId
method setups the branch name as part of the test reference, and this is stored in theJiraIssueKeyToTestMap.json
fileLdapPluginTest#login_no_such_user
is fixed on next execution, BUT it is executed in a different branch, then it will not be marked as resolvedTesting performed
test6o
) to fail in different stages (ONE
,TWO
andTHREE
). It will generate something like:ONE
. Also update manually the map to just have the following entry:TestObject.getId()
will not match. Thus, it will search for the key based on test in the Jira server and will transition it as expectedChecklist