Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
pyramid.pdf
Скачиваний:
11
Добавлен:
24.03.2015
Размер:
3.82 Mб
Скачать

36.3. INSTALLATION

c:\pyramidtut\tutorial> ..\Scripts\python setup.py test -q

36.3.5 Expose Test Coverage Information

You can run the nosetests command to see test coverage information. This runs the tests in the same way that setup.py test does but provides additional “coverage” information, exposing which lines of your project are “covered” (or not covered) by the tests.

On UNIX:

$ ../bin/nosetests --cover-package=tutorial --cover-erase --with-coverage

On Windows:

c:\pyramidtut\tutorial> ..\Scripts\nosetests --cover-package=tutorial ^ --cover-erase --with-coverage

Looks like the code in the zodb scaffold for ZODB projects is missing some test coverage, particularly in the file named models.py.

36.3.6 Start the Application

Start the application.

On UNIX:

$ ../bin/pserve development.ini --reload

On Windows:

c:\pyramidtut\tutorial> ..\Scripts\pserve development.ini --reload

latex-note.png

Your OS firewall, if any, may pop up a dialog asking for authorization to allow python to accept incoming network connections.

397

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]