Currently, UnitTesting cannot run tests that are inside installed packages.
This would allow package authors to verify that their tests run when the package is installed. End users could also more easily troubleshoot their installed packages.
This is mostly because it inherits the discover method of unittest.TestLoader, which uses the filesystem directly. We could reimplement discover in UnitTestingLoader to use the resource system instead. In principle, this should work for our use case, because every test suite that UnitTesting can find should be accessible as a resource.
There are also a couple of minor issues, such as the way that unittesting.json files are loaded.
I'm working on an implementation.
Currently, UnitTesting cannot run tests that are inside installed packages.
This would allow package authors to verify that their tests run when the package is installed. End users could also more easily troubleshoot their installed packages.
This is mostly because it inherits the
discovermethod ofunittest.TestLoader, which uses the filesystem directly. We could reimplementdiscoverinUnitTestingLoaderto use the resource system instead. In principle, this should work for our use case, because every test suite that UnitTesting can find should be accessible as a resource.There are also a couple of minor issues, such as the way that
unittesting.jsonfiles are loaded.I'm working on an implementation.