Using Pass Execution causes pytest failure
From the docs:
"Skips rest of the current test ..."
https://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Pass%20Execution
Under the hood it is implemented by raising an Exception:
https://github.com/robotframework/robotframework/blob/master/src/robot/errors.py#L296
In my use case I would like to treat a test with this keyword as a Pass.
I don't know if its the correct behavior for every case, but it would be useful if it were at least configurable.
In my test:
```
Pass Execution If '${v}'=='XXX' foo
```
The result:
```
$ pytest tests/test.robot::case2
...
========== short test summary info ==========
FAILED tests/test.robot::case2 - robot.errors.PassExecution: foo
```
The Robot report displays it correctly, but I think probably pytest could too.
I hope this is in the scope of this package, thanks for the help!
关闭于 2025-04-13 0 条评论