ModularM
Modular2y ago
12 replies
toasty

Usage of mojo test

Is anyone using mojo test to run their unit tests? I’m trying to use it instead defining a test package that’s executed via mojo run.

However, it doesn’t work as described in the docs. If my test directory is not a mojo package, I can’t import my package source code to test it. And -I doesn’t resolve the issue either. I figure I’m just missing something here and was hoping someone else could share their repo as an example.
Was this page helpful?