Script unittest

Script types: prerule
Categories: safe
Download: https://svn.nmap.org/nmap/scripts/unittest.nse

Script Summary

Runs unit tests on all NSE libraries.

Script Arguments

unittest.run

Run tests. Causes unittest.testing() to return true.

unittest.tests

Run tests from only these libraries (defaults to all)

Example Usage

nmap --script unittest --script-args unittest.run

Script Output

Pre-scan script results:
| unittest:
|_ All tests passed

Requires


Author:

  • Daniel Miller

License: Same as Nmap--See https://nmap.org/book/man-legal.html