nicoulaj / pytest-csv

CSV reporter for pytest.
GNU General Public License v3.0
21 stars 16 forks source link

"test_file" parameter interpreted as a column and raising a KeyError #8

Open wanam opened 5 years ago

wanam commented 5 years ago

If we try the run a pytest with a test file parameter: pytest test_file:Test01 --csv tests.csv --csv-columns function,status,duration,parameters_as_columns

It gets interpreted as a column in the "config.option".

The current workaround is to put the --csv-columns with it's columns names in the middle of the pytest command, or just adding an other parameter --csv-delimiter ';' at the end of the command.

nicoulaj commented 3 years ago

Can you still reproduce this issue ? I added a test in 5f317cc4886bbe5e96bc46ad7bb81c725503bfe5 but it seems to work fine.