nicoulaj / pytest-csv

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

add csv output sort using 'id' from column, with this solutions csv o… #23

Open inghowe83 opened 2 years ago

inghowe83 commented 2 years ago

add csv output sort using 'id' from column, with this solutions csv output will match --co. This solutions will change the default behavior: 1) 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. 2) When 'id' column is not exited, the code will execute the default pytest-csv _reporter.py behavior.

inghowe83 commented 2 years ago

@nicoulaj , @etse1288 . Please help review and approve this merge request. Thanks a bunch.

inghowe83 commented 2 years ago

@nicoulaj , we added xdist sort option. When this option is enable, it will sort the output of the csv