-
Notifications
You must be signed in to change notification settings - Fork 51
Major refactoring WIP #346
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
base: main
Are you sure you want to change the base?
Conversation
…ctions, removed redundant methods, updated fields meta
excluded cases section id update if update is not allowed
…constants, some log messages are improved
|
Hi @unroma we have created a new refactor branch: refactor/1.11.0 which is based on version 1.11.0. We will be using this branch to move or rebase refactored code gradually as we also test them. Please point this PR to the said branch. Thank you :) |
| self.environment.log(success_message) | ||
|
|
||
| def _resolve_run_and_results_upload(self) -> None: | ||
| self.create_or_update_test_run() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If auto creation is "no", then why is the test run being created or updated? (Specification-first workflow). Perhaps an if-statement for if auto-creation is yes would be appropriate here
Issue being resolved:
#345
#244
#287
#127
Most probably solved:
#332
#340
Solution description
Caution! A lot of text below!
Current solution is not completed. Work in progress! It's not even tested properly and what is very important unit tests are not written/updated. So, now existing unit test will fail, no doubts about that. I' m going to update description time to time. Keep in mind that this text is not final.
For now I created new packages with the names of old and ending _v2 . When I finish the old packaged must be replaced.
I'm trying to leave some my thoughts and comments in code (later might be removed)
What was already done:
Changes
I will top up this step by step:
ResultsUploader. It's redundant. Junit parser didn't map empty sections and subsections. (and this is parser's responsibility). There is a case when empty section might be created:In that case section will be created, but I think this is expected behavior. It's possible to handle add prohibit creation, but I don't think is necessary and only will make logic more complicated.
instantiate_api_clientmethod moved fromProjectBasedClientto more appropriate place in api helpers packagePotential impacts
Many places, hard to say right now, will try to point later, together with unit tests
Steps to test
Currently hard. Only with replacements in imports.
Work still in progress. Also would be nice to have discussion with interested people form community.
I performed some common tests and looks like sulution works. Any way i will continue working on tests.
PR Tasks