NetExec/tests
Alexander Neff 8f2c847815 Remove old test.txt 2024-03-29 21:16:35 +01:00
..
data Added function tests + test file for FTP upload/download testing 2023-10-03 04:09:13 +00:00
README.md Update testing README, rename file to match README and add small test suite 2024-03-27 20:17:05 +01:00
e2e_commands.txt Merging main into fgpp and resolving conflicts 2024-03-15 00:56:38 +01:00
e2e_tests.py Update testing README, rename file to match README and add small test suite 2024-03-27 20:17:05 +01:00
test_smb_database.py Replace old WS_PATH variable 2023-11-24 19:59:58 -05: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): poetry install --with dev
  • 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