Hylke
Hylke
MModular
Created by Hylke on 5/9/2024 in #questions
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:
├── 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():
...
def test_transformation():
...
As described in the docs: https://docs.modular.com/mojo/tools/testing Any suggestions?
7 replies