Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 187719 - NB can't run tests in packages
NB can't run tests in packages
Status: NEW
Product: python
Classification: Unclassified
Component: Testing
PC All
: P2 (vote)
Assigned To: Jenselme
Depends on:
  Show dependency treegraph
Reported: 2010-06-17 11:17 UTC by ravx
Modified: 2015-11-27 20:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description ravx 2010-06-17 11:17:39 UTC
In a situation where we have packages in a project, you can not run the tests.
For example, if we have a structure:

<Top Level>:
        |   |
        |   |
            | (Test Unit)

When I try to run the tests in the module get an error from (line 216):
0 tests, 0 failures, 0 errors
    module = __import__ (module_name, globals (), locals (), module_name)
ImportError: No module named
When you move to <Top Level> everything is in OK - tests runs. What's more - no problem running the modules in packages, such as
Comment 1 Lou Dasaro 2015-09-06 05:46:54 UTC
Reassigning to Julien for evaluation.
Comment 2 Jenselme 2015-09-29 14:12:34 UTC
Just tested: it seems that in order to be detected (skeaking for setuptools projects), the tests must be in the main module (eg aot and aot/tests). They are however run by ant even if the user is asked about a main script to execute.

That will require some work after the 8.1 release.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo