Skip to content

Testing Individual Unit Tests #1039

Answered by glennmatthews
jvanderaa asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the syntax is invoke unittest --label <label>, for example

  • invoke unittest --label nautobot.extras.tests (all tests in the nautobot.extras.tests module)
  • invoke unittest --label nautobot.extras.tests.test_models.ConfigContextTest (the ConfigContextTest class within the nautobot.extras.tests.test_models module)
  • invoke unittest --label nautobot.extras.tests.test_models.ConfigContextTest.test_name_uniqueness (specific test case within that class).

A documentation PR would be more than welcome here. :-)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jvanderaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants