reportportal / agent-Python-RobotFramework

Robot Framework integration for Report Portal
Apache License 2.0
59 stars 33 forks source link

Code reference and test case id logic update #119

Closed HardNorth closed 3 years ago

HardNorth commented 3 years ago

Justification: source value inside item attributes contains full path to a .robot file. That means on different machines (E.G. locally and on server) it will have different code_refs. That will lead to different Test Case IDs, therefore same tests will not be displayed in history if they run on different machines. Another issue here is that if we use a popular extension DataDriver we will get a code_ref which is missed in the source file. E.G. a line like this: Login with user '${username}' and password '${password}' will be transformed into line like this: Login with user 'User' and password 'Password'.

So the patch does:

codecov-commenter commented 3 years ago

Codecov Report

Merging #119 (b10dc16) into master (82285df) will increase coverage by 0.45%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #119      +/-   ##
==========================================
+ Coverage   73.04%   73.49%   +0.45%     
==========================================
  Files          10       10              
  Lines         523      532       +9     
==========================================
+ Hits          382      391       +9     
  Misses        141      141              
Flag Coverage Δ
unittests 73.49% <100.00%> (+0.45%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
robotframework_reportportal/model.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 82285df...b10dc16. Read the comment docs.