5 | | The reason why "`coverage run bin/tahoe debug trial`" does not work is that `bin/tahoe` runs the "`debug trial`" command in a subprocess, in order to pass the correct `PYTHONPATH`. `coverage` isn't capable of capturing coverage information for subprocesses. (Running it directly wouldn't help, because `coverage` does not have the right `PYTHONPATH` and so neither does any script it runs.) So `src/allmydata/__init__.py` complains and exits, as it should. |
| 5 | [Edit: corrected the following paragraph.] |
| 6 | |
| 7 | The reason why "`coverage run bin/tahoe debug trial`" does not work is that `bin/tahoe` runs the support script that does the tests in a subprocess, in order to pass the correct `PYTHONPATH`. So the coverage that is captured is only that of the `bin/tahoe` script, since `coverage` isn't capable of capturing coverage information for subprocesses. (Running it directly wouldn't help, because `coverage` does not have the right `PYTHONPATH` and so neither does any script it runs.) |