Closed tyleraland closed 8 years ago
Tests would be good and also update the CHANGELOG.rst
I'm not really sure what's worth testing.
I could test for the obvious, that if I pass in "--include-ref-rank $RANK" that "$RANK_id,$RANK_name" are in the output file (for one or two particular ranks), but this doesn't seem particularly useful to me.
I could test for failure -- If I ask for "--include-ref-rank unknown", then it will expectedly fail. Alternatively, I could write it so that it fails gracefully and then test for that, although I think it makes more sense to fail noisily if the desired rank is not in the taxonomy.
Unless one feels stongly that one of these tests should be implemented, I think merging it without writing tests is most appropriate, given our usual development style.
"include-ref-rank" argument, pulls in rank-level taxonomic ID and name from taxonomy and includes it in every details row.
Can be used like:
--include-ref-rank species --include-ref-rank species_group --include-ref-rank genus
to include information from multiple ranksTODO: Tests?