pytest-csv
pytest-csv copied to clipboard
add csv output sort using 'id' from column, with this solutions csv o…
add csv output sort using 'id' from column, with this solutions csv output will match --co. This solutions will change the default behavior:
- When 'id' column is existed in user column, it will sort and match the order of the --co list with the csv output. The key reason is there no other parameters than 'id' column which able to match the --co data.
- When 'id' column is not exited, the code will execute the default pytest-csv _reporter.py behavior.
@nicoulaj , @etse1288 . Please help review and approve this merge request. Thanks a bunch.
@nicoulaj , we added xdist sort option. When this option is enable, it will sort the output of the csv