pytest-csv icon indicating copy to clipboard operation
pytest-csv copied to clipboard

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

Open inghowe83 opened this issue 2 years ago • 2 comments

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 avatar Aug 24 '22 03:08 inghowe83

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

inghowe83 avatar Aug 24 '22 03:08 inghowe83

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

inghowe83 avatar Sep 01 '22 00:09 inghowe83