ModularM
Modular2y ago
6 replies
Hylke

Mojo test

Did anyone get unit tests working?
I run mojo test on the following folder structure:
├── my_package
│   ├── __init__.:fire:
│   └── tensor.:fire:
└── test
    ├── __init__.:fire:
    └── test_tensor.:fire:

But it doesn't pick up my tests Total Discovered Tests: 0.
The test_tensor.🔥 contains a function:
def test_transformation():
  ...

As described in the docs: https://docs.modular.com/mojo/tools/testing
Any suggestions?
Testing Mojo programs.
Testing | Modular Docs
Was this page helpful?