jessezach / RobotEyes

Image comparison for Robot Framework
MIT License
75 stars 24 forks source link

Result output in a non-root directory ( #75

Closed 12jakubpavel closed 4 years ago

12jakubpavel commented 4 years ago

Describe the bug If I run this command: _robot -d ./../DCS/results -v images_dir:./../DCS/results/visualimages/baseline --test "PDF Visual Overflow" ./../DCS generate_report fail

If I run this command: _robot -d results -v images_dir:./../DCS/results/visualimages/baseline --test "PDF Visual Overflow" ./../DCS generate_report pass

Screenshots _robot -d ./../LTSA/DCS/results -v images_dir:./../LTSA/DCS/results/visualimages/baseline --test "Verify Strata Property Act Filing PDF Visual Overflow" ./../LTSA/DCS image

_robot -d results -v images_dir:./../LTSA/DCS/results/visualimages/baseline --test "Verify Strata Property Act Filing PDF Visual Overflow" ./../LTSA/DCS image

Desktop (please complete the following information):

Twista commented 4 years ago

Hello, I have same problem.

It seems that the issue is in this line

https://github.com/jz-jess/RobotEyes/blob/master/RobotEyes/__init__.py#L246

when absolute windows path (e.g. C:\Results) is provided, the first letter is stripped and therefore report_path is set to \Results - which doesn't exist

jessezach commented 4 years ago

Fix released in 1.5.2