Skip to content

Increasing Pytest Coverage

Emma Hobbs edited this page Jun 18, 2020 · 2 revisions

Planning increasing Pytest coverage.

This page discusses proposals and plans to increase the coverage by Pytest.

Pytest structuring

  • Separate out parser, logger and directory handling tests into separate test fills for easier navigation of test directory

get_ncbi_genomes.py

  • Current coverage is 38%. Calling to Entrez to retrieve accession numbers and download GenBank files.
  • Coverage could be increased by creating a pytest for the compile_url() function.
  • write_out_dataframe() function is used in other modules and could be moved into the directory_handling module.

output_dir_handling.py

  • Increase the coverage of testing make_output_directory() function by changing force and nodelete to True.
  • Add test to test the write_out_dataframe() function

logger_pyrewton_main.py

  • Increase coverage of main build_logger function by changing args.log to not equal None.