Closed
Bug 695539
Opened 13 years ago
Closed 10 years ago
python test-runner shouldn't import every .py file it sees
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: warner, Unassigned)
References
Details
I noticed that the test-case-finder code used by 'cfx testcfx' imports every .py file that it finds in the source tree, to scan each for test cases. That's a drag, it's fairly common to have random little unparseable snippets in .py files, and they shouldn't affect anything unless some normal SDK file imports one explicitly. As a sample, if I create python-lib/cuddlefish/IGNOREME.py with the following contents:
raise RuntimeError("Why are you importing me?")
then 'cfx testcfx' throws an exception before running any tests.
This is a minor thing.. I may be the only person affected by it. But it'd be nice to fix eventually.
Priority: -- → P3
Comment 1•10 years ago
|
||
Sorry we won't be releasing any new versions of cfx, jpm is the replacement https://www.npmjs.com/package/jpm
Luckily I know this is not an issue with jpm.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•