Mojo test command not working

Hi,

I’m trying to use mojo test on a simple test. I followed the files organization described in the documentation.

However when I run

mojo test -I src test

or variants I get this message

Total Discovered Tests: 0
No tests were discovered with the test ID test/jtc/test_1thread.mojo. Did you mean to use --filter instead?

the test file runs file if I use mojo -I src test/tests.mojo

Is there any gotcha ?

Mojo 25.6.0.dev2025081619 (baa95bd6)

Lucian

Does your file contain functions wise name starts with ‘test_’? Have you worked through Testing | Modular ?

Yes, I tried to follow the docs.
Could you have a look at this simple repo ?
https://github.com/antonl321/JTC/tree/aug25/test/jtc

lucian

I think the function signature does not match. Try writing test functions without free parameters. The tester does not know what to put into the square brackets.

Yes, it works if I drop the parameters. Also I had to remove a test file that somehow ended up in my system /tmp directory and had precedence when running mojo test … .

Thx,

Lucian.