UNIT2(1)

πŸ“¦ version 1.1.0, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸŽ€ NAME πŸŽ€

unit2 β€” a shorthand for python -m unittest2

okay so bestie, quick vibe check: this whole page lives in the General Commands Manual (section 1, the big leagues πŸ’…), and unit2 is genuinely just your little shortcut bestie so you never have to type the whole python -m unittest2 thing ever again. periodt.


✨ SYNOPSIS ✨

unit2 [ -h ] [ -v ] [ -q ] [ -f ] [ -c ] [ -b ] [ tests [tests ...]  ]

🌸 DESCRIPTION 🌸

The unit2 script is literally a convenient shortcut for discovering and running tests in a given body of Python source code. that's it, that's the whole job, and she ate πŸ”₯

πŸ‘‘ COMMAND LINE OPTIONS πŸ‘‘

every flag, no skips, we don't gatekeep here 🫢

  • -h, --help β€” show this help message and exit. the classic "help meeee" button 😭
  • -v, --verbose β€” verbose output. she's chatty, she's telling you everything ✨
  • -q, --quiet β€” quiet output. shhh 🀫 lowkey minimal energy
  • -f, --failfast β€” stop on first fail or error. no cap, one mess and we're out πŸ’€
  • -c, --catch β€” catch ctrl-C and display results so far. you hit the panic button, she still shows you the receipts πŸŽ€
  • -b, --buffer β€” buffer stdout and stderr during tests. hold it in, hold it in, we'll let it out later πŸ™ˆ

πŸ’– EXAMPLES πŸ’–

here's how the girlies actually run her πŸ‘‘

  • run tests from test_module:
unit2 test_module
  • run tests from module.TestClass:
unit2 module.TestClass
  • run specified test method:
unit2 module.Class.test_method

🌈 AUTHOR 🌈

so the AUTHOR section on this page is empty. no name, no nothing. an absolute mystery icon, main character energy with zero backstory 🧚 iykyk.


ngl bestie, this whole page is from the General Commands Manual β€” no version, no date, just vibes and a section-1 badge. go forth and run your tests, you've got this πŸ’œ
πŸ“¦ where this page comes from