Opened at 2014-08-05T17:27:26Z
Closed at 2016-04-28T07:15:39Z
#2272 closed enhancement (invalid)
Make `python ./setup.py trial` output friendlier if there has not been a build.
Reported by: | nejucomo | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.12.0 |
Component: | code | Version: | 1.10.0 |
Keywords: | test build easy | Cc: | |
Launchpad Bug: |
Description
I just did this:
$ python ./setup.py trial running update_version git-version: wrote '1.10.0-89-gb7f3585' into 'src/allmydata/_version.py' running trial /home/n/virtualenvs/default/bin/python: can't open file 'bin/tahoe': [Errno 2] No such file or directory
Then I asked people in Nuts & Bolts about this and learned some details. It would be potentially helpful for other if the output instead looked like this:
$ python ./setup.py trial running update_version git-version: wrote '1.10.0-89-gb7f3585' into 'src/allmydata/_version.py' running trial Error: 'bin/tahoe' does not exist. The trial command requires tahoe to be built. You can explicitly build tahoe by running: $ python ./setup.py build You can build and run trial in a single command by running: $ python ./setup.py test
Note: The usage text already clearifies this:
$ python ./setup.py --help-commands | grep -E 'test|trial' test run unit tests after in-place build trial run trial (use 'bin/tahoe debug trial' for the full set of trial options)
Note: Prior to running trial, I searched in ./docs for something like testing.rst. Zooko tells me this lives on the wiki, but it seems like it should live in ./docs because it's revision specific and useful even when I'm offline.
Change History (4)
comment:1 Changed at 2014-08-07T14:14:35Z by daira
- Component changed from unknown to code
- Keywords test build added
- Milestone changed from undecided to 1.12.0
- Type changed from defect to enhancement
comment:2 Changed at 2014-08-07T14:15:07Z by daira
- Keywords easy added
- Owner daira deleted
comment:3 Changed at 2016-03-22T05:02:25Z by warner
- Milestone changed from 1.12.0 to 1.13.0
comment:4 Changed at 2016-04-28T07:15:39Z by warner
- Milestone changed from 1.13.0 to 1.12.0
- Resolution set to invalid
- Status changed from new to closed
setup.py trial has been removed. tox is now the recommended way to run tests, and it builds anything that's necessary. So I think this ticket is no longer relevant.
Milestone renamed