avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
345 stars 343 forks source link

Add Path Validation and Environment Loading to TreeNode Class #6064

Open qisijia367 opened 2 weeks ago

qisijia367 commented 2 weeks ago

This pull request introduces path validation and environment loading functionality to the TreeNode class. The changes ensure that the path provided during initialization is valid and that environment variables can be correctly loaded into the node's environment.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 31.91489% with 32 lines in your changes missing coverage. Please review.

Project coverage is 54.47%. Comparing base (6b55d5a) to head (273de37). Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
avocado/core/tree.py 31.91% 32 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6064 +/- ## ========================================== + Coverage 54.46% 54.47% +0.01% ========================================== Files 202 202 Lines 21883 21928 +45 ========================================== + Hits 11919 11946 +27 - Misses 9964 9982 +18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

qisijia367 commented 2 weeks ago

Hi @richtja,Thank you for your suggestions, I have optimized the code again and added some test cases in selftests/unit/tree.py. Please check if they meet the requirements. 截图_选择区域_20241107170739