Auto Test Discovery Using Unittest

This definitely worked, so thank you! I’ll be using it until I can figure out a way to manually scan the Anvil project to do something analogous to

suite = unittest.TestLoader().discover('.', pattern = "_Test.py")

Except instead of files, it will be for modules.

I’ll be hiking in the anvil.server to see if there’s anything useful there that I can use to reflect on the current anvil project’s modules in the server code.

I didn’t see anything in the documentation that allowed this, so I created a feature request here

1 Like