NetExec/tests
Marshall Hallenbeck d8b29312b7 ruff: add flake8-simplify (SIM) and auto-fix 2023-10-14 15:56:22 -04:00
..
data fix bug where socket would not exist and updated ftp/ssh-related tests to include file creds 2023-06-18 10:09:01 -04:00
README.md rename folders, files, functions, classes, etc to NetExec/nxc 2023-09-14 17:07:15 -04:00
e2e_commands.txt ruff: add flake8-simplify (SIM) and auto-fix 2023-10-14 15:56:22 -04:00
e2e_test.py tests: add --poetry parameter to prepend 'poetry run' before commands 2023-10-14 14:29:01 -04:00
test_smb_database.py ruff: add flake8-pytest-style (PT) and auto-run 2023-10-13 15:25:36 -04:00

README.md

nxc Tests

Running Tests

Unit Tests

  • Install nxc (either in venv or via Poetry)
  • Run pytest (or poetry run pytest)

End to End Tests

  • Install nxc (either in venv or via Poetry)
  • Run python tests/e2e_tests.py -t $IP -u $USER -p $PASS, with optional -k parameter
    • Poetry: poetry run python tests/e2e_tests.py -t $IP -u $USER -p $PASS
  • To see full errors (that might show real errors not caught by checking the exit code), run with the --errors flag