Coverage results not showing in editor
Pycharm 2.5.1 and I'm running as a PyUnit nosetests, everything works fine. The coverage results come up in the coverage results window, but I don't see an indication in the editor of what is covered and not covered. I'd like the whole line's background color to change based on the coverage results. I've checked out the "Settings>Editor>Colors&Fonts>General" and changed the colors from Foreground to Background, but nothing changed.
Am I missing a configuration somewhere?
Regards,
Chris Johnson
Please sign in to leave a comment.
Same here.
I am running 32-bit Python 2.7 on 64-bit Windows 7.
If I run the same commands, that Pycharm is running in the console, I get results much faster and the coverage reports are in place:
C:\Users\dotz\Documents\django_bpp>coverage report
Name Stmts Miss Cover
---------------------------
C:\Users\dotz\Documents\django_bpp>C:\Python27\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2.5.2\helpers\run_coverage.py" run "--omit=C:\Program Files (x86)\JetBrains\PyCharm 2.5.2\helpers*" "C:\Program Files (x86)\JetBrains\PyCharm 2.5.2\helpers\pycharm\django_test_manage.py" test bpp C:/Users/dotz/Documents/django_bpp
There is no such settings file settings
C:\Python27\lib\site-packages\debug_toolbar\__init__.py:4: UserWarning: Module coverage was already imported from C:\Program Files (x86)\JetBrains\PyCharm 2.5.2\helpers\coverage\__init__.py, but c:\python27\lib\site-packages is being added
to sys.path
VERSION = __import__('pkg_resources') \
##teamcity[enteredTheMatrix]
Creating test database for alias 'default'...
Creating group 'administracja'...
Creating group 'struktura'...
Creating group 'wprowadzanie danych'...
Creating group 'dane systemowe'...
Creating group 'indeks autor├│w'...
Creating group 'administracja'...
Creating group 'struktura'...
Creating group 'wprowadzanie danych'...
Creating group 'dane systemowe'...
Creating group 'indeks autor├│w'...
##teamcity[enteredTheMatrix]
##teamcity[testCount count='13']
##teamcity[testSuiteStarted name='bpp.tests.test_admin.TestAdmin' locationHint='python_uttestid://bpp.tests.test_admin.TestAdmin']
##teamcity[testStarted name='test_custom_app_index' locationHint='python_uttestid://bpp.tests.test_admin.TestAdmin.test_custom_app_index']
##teamcity[testFinished duration='739' name='test_custom_app_index']
##teamcity[testStarted name='test_modeadmin_zapisz_z_metryczka_utworzony_przez'
locationHint='python_uttestid://bpp.tests.test_admin.TestAdmin.test_modeadmin_zapisz_z_metryczka_utworzony_przez']
##teamcity[testFinished duration='406' name='test_modeadmin_zapisz_z_metryczka_utworzony_przez']
##teamcity[testStarted name='test_modeadmin_zapisz_z_metryczka_zmieniony_przez'
locationHint='python_uttestid://bpp.tests.test_admin.TestAdmin.test_modeadmin_zapisz_z_metryczka_zmieniony_przez']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1996-12-13 12:25:01) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1995-05-08 21:43:11) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2009-12-03 08:01:06) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1995-06-17 09:06:06) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='365' name='test_modeadmin_zapisz_z_metryczka_zmieniony_przez']
##teamcity[testStarted name='test_root' locationHint='python_uttestid://bpp.tests.test_admin.TestAdmin.test_root']
##teamcity[testFinished duration='528' name='test_root']
##teamcity[testSuiteFinished name='bpp.tests.test_admin.TestAdmin']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestAutor' locationHint='python_uttestid://bpp.tests.test_models.TestAutor']
##teamcity[testStarted name='test_autor' locationHint='python_uttestid://bpp.tests.test_models.TestAutor.test_autor']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2010-07-16 13:27:49) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1997-07-13 12:06:53) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1998-02-07 21:19:36) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2010-09-21 08:41:33) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2002-03-12 15:40:48) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1994-03-27 15:55:24) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2011-02-10 00:47:53) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2001-12-02 19:04:23) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='46' name='test_autor']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestAutor']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestJednostka' locationHint='python_uttestid://bpp.tests.test_models.TestJednostka']
##teamcity[testStarted name='test_jednostka' locationHint='python_uttestid://bpp.tests.test_models.TestJednostka.test_jednostka']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1999-05-02 09:01:48) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1999-11-19 10:29:39) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2001-01-28 04:13:12) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2003-08-03 11:02:05) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2003-01-31 05:27:08) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2007-01-22 21:50:44) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2000-12-31 18:51:32) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2002-08-28 11:21:24) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2001-12-30 10:45:44) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2000-08-11 22:44:27) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1994-02-24 08:37:39) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2011-07-13 17:55:05) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='49' name='test_jednostka']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestJednostka']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestNazwaISkrot' locationHint='python_uttestid://bpp.tests.test_models.TestNazwaISkrot']
##teamcity[testStarted name='test_skrot' locationHint='python_uttestid://bpp.tests.test_models.TestNazwaISkrot.test_skrot']
##teamcity[testFinished duration='0' name='test_skrot']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestNazwaISkrot']
##teamcity[testSuiteStarted name='bpp.tests.test_admin.TestNormalUserAdmin' locationHint='python_uttestid://bpp.tests.test_admin.TestNormalUserAdmin']
##teamcity[testStarted name='test_root' locationHint='python_uttestid://bpp.tests.test_admin.TestNormalUserAdmin.test_root']
##teamcity[testFinished duration='562' name='test_root']
##teamcity[testSuiteFinished name='bpp.tests.test_admin.TestNormalUserAdmin']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestPunktacjaZrodla' locationHint='python_uttestid://bpp.tests.test_models.TestPunktacjaZrodla']
##teamcity[testStarted name='test_punktacja_zrodla' locationHint='python_uttestid://bpp.tests.test_models.TestPunktacjaZrodla.test_punktacja_zrodla']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2006-03-27 13:30:40) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-03-25 04:47:44) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1996-05-04 07:28:47) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2010-01-23 19:15:17) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='29' name='test_punktacja_zrodla']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestPunktacjaZrodla']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestRedakcjaZrodla' locationHint='python_uttestid://bpp.tests.test_models.TestRedakcjaZrodla']
##teamcity[testStarted name='test_redakcja_zrodla' locationHint='python_uttestid://bpp.tests.test_models.TestRedakcjaZrodla.test_redakcja_zrodla']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2003-07-11 00:11:00) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1999-11-18 08:23:55) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2010-04-08 19:30:44) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2006-02-06 16:40:40) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-01-31 15:10:54) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2011-02-21 21:59:26) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2007-12-21 07:07:16) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2011-12-21 08:10:20) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='38' name='test_redakcja_zrodla']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestRedakcjaZrodla']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestTytul' locationHint='python_uttestid://bpp.tests.test_models.TestTytul']
##teamcity[testStarted name='test_tytul' locationHint='python_uttestid://bpp.tests.test_models.TestTytul.test_tytul']
##teamcity[testFinished duration='2' name='test_tytul']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestTytul']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestWydzial' locationHint='python_uttestid://bpp.tests.test_models.TestWydzial']
##teamcity[testStarted name='test_wydzial' locationHint='python_uttestid://bpp.tests.test_models.TestWydzial.test_wydzial']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1996-02-02 01:52:04) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1992-06-04 06:49:47) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1994-03-07 13:50:03) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1997-03-24 14:45:28) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1994-05-13 20:47:54) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1999-06-03 19:09:14) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2005-11-06 19:28:11) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2006-04-04 20:47:57) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='39' name='test_wydzial']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestWydzial']
##teamcity[testSuiteStarted name='bpp.tests.test_models.TestZrodlo' locationHint='python_uttestid://bpp.tests.test_models.TestZrodlo']
##teamcity[testStarted name='test_zrodlo' locationHint='python_uttestid://bpp.tests.test_models.TestZrodlo.test_zrodlo']
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1995-06-06 13:33:34) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2005-12-19 23:24:56) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (1991-12-22 15:07:52) while time
zone support is active.
RuntimeWarning)
C:\Python27\lib\site-packages\django\db\models\fields\__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2009-05-26 10:46:08) while time
zone support is active.
RuntimeWarning)
##teamcity[testFinished duration='19' name='test_zrodlo']
##teamcity[testSuiteFinished name='bpp.tests.test_models.TestZrodlo']
Destroying test database for alias 'default'...
C:\Users\dotz\Documents\django_bpp>coverage report
Name Stmts Miss Cover
-----------------------------------------------------
bpp\__init__ 0 0 100%
bpp\admin\__init__ 60 0 100%
bpp\admin\helpers 25 0 100%
bpp\autocomplete_light_registry 4 0 100%
bpp\fields 2 0 100%
bpp\jezyk_polski 2 0 100%
bpp\management\__init__ 1 0 100%
bpp\management\post_syncdb 20 0 100%
bpp\models\__init__ 9 0 100%
bpp\models\abstract 91 0 100%
bpp\models\autor 57 2 96%
bpp\models\patent 16 0 100%
bpp\models\profile 13 0 100%
bpp\models\struktura 37 0 100%
bpp\models\system 30 0 100%
bpp\models\wydawnictwo_ciagle 22 0 100%
bpp\models\wydawnictwo_zwarte 24 0 100%
bpp\models\zrodlo 55 1 98%
bpp\system 4 0 100%
bpp\tests\__init__ 2 0 100%
bpp\tests\test_admin 28 0 100%
bpp\tests\test_models 47 0 100%
bpp\testutil 17 0 100%
django_bpp\__init__ 0 0 100%
django_bpp\dashboard 26 0 100%
django_bpp\menu 25 0 100%
django_bpp\settings 34 0 100%
django_bpp\urls 6 0 100%
manage 6 3 50%
-----------------------------------------------------
TOTAL 663 6 99%
Unfortunatley, PyCharm doesn't show any coverage information:
Attachment(s):
Bez%C2%A0tytu%C5%82u.png
I removed .idea directory and re-opened the project. It didn't help.
This is a bug - it occurs with empty, default projects.