DetachHead / pytest-robotframework

a pytest plugin that creates robotframework reports for tests written in python and allows you to run robotframework tests with pytest
https://detachhead.github.io/pytest-robotframework/
MIT License
28 stars 2 forks source link

keywords that take arguments display the full value in the robot log #299

Closed DetachHead closed 1 month ago

DetachHead commented 1 month ago

eg.

from pytest_robotframework import keyword

@keyword
def foo(value: list[int]): ...

def test_foo():
    foo(list(range(1000)))

this is how the keyword looks in the robot log: image

when doing the same thing in a .robot file, it shows the source code instead of its evaluated value, which is much cleaner:

*** Test Cases ***
Bar
    Foo    ${{list(range(1000))}}

image