Suppose that this is the layout of the source directory of my PyBuilder project
(empty __init__.py
in myProject
omitted):
src
├── main
│ └── python
│ └── myProject
│ └── usefulThing.py
└── unittest
└── python
└── UsefulThingTest.py
and the content of UsefulThingTest.py
is as follows:
import unittest
from myProject.usefulThing import usefulFunction
class UsefulThingTest(unittest.TestCase):
def test_should_do_useful_things(self):
self.assertEqual(usefulFunction(42), 1764)
When I run pyb
, I get the following warnings, and no tests are executed:
[WARN] No unit tests executed.
[INFO] All unit tests passed.
Why doesn't PyBuilder run those tests?