Skip to content

2.13.1: list command --verbose flag

Compare
Choose a tag to compare
@connordelacruz connordelacruz released this 06 May 17:09
· 48 commits to develop since this release

<test_project> list now displays module names in addition to classes and methods. Additionally, the --verbose flag was added, which prints test docstrings and outputs using tree characters e.g.:

home:
└── HomePageTestCase:
    Really contrived example test case
    ├── test_more_information_link
    │   Test that the 'More information...' link goes to the correct URL
    └── test_page_heading
        Ensure that the page heading text is correct

Details

common.cmd:

  • Added print_shortened(), which truncates strings longer than the terminal width

project.cmd.list:

  • Added --verbose flag to list command. If used, docstrings for test cases and methods will be printed
  • list now shows modules in addition to test classes and methods
  • Re-worked internals of how list prints stuff