Skip to content

Clean up Zenmap unit tests #85

@dmiller-nmap

Description

@dmiller-nmap

Lots of Zenmap's component Python modules have unit tests of some sort or other, but many are just "run this function if __name__=='__main__'" type of things. We currently use the test discovery built in to Python 2.7's unittest library, so this task could be taken in a few different steps:

  1. Convert existing tests to unittest test cases so that autodiscovery can pick them up.
  2. Add new test cases for functions and modules not covered by any tests.
  3. Use a more robust testing structure (like a zenmap/tests/ directory) so we don't rely on autodiscovery, which doesn't work on Python 2.6 and earlier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions