Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

green_mode.py: Incomplete branch coverage on python3.6 #328

Open
ishanSrt opened this issue Nov 7, 2018 · 2 comments
Open

green_mode.py: Incomplete branch coverage on python3.6 #328

ishanSrt opened this issue Nov 7, 2018 · 2 comments
Labels

Comments

@ishanSrt
Copy link
Contributor

ishanSrt commented Nov 7, 2018

coala_quickstart/green_mode/green_mode.py                        325      2    187      0    99%   359, 393
@gitmate-bot
Copy link

GitMate.io thinks the contributor most likely able to help you is @jayvdb.

@ishanSrt ishanSrt changed the title green_mode.py: Incomplete branch coverage green_mode.py: Incomplete branch coverage on python3.6 Nov 8, 2018
@ishanSrt
Copy link
Contributor Author

ishanSrt commented Nov 8, 2018

============================================== test session starts ==============================================
platform linux -- Python 3.6.6, pytest-3.6.4, py-1.7.0, pluggy-0.7.1
rootdir: /home/ubuntu/coala-quickstart, inifile: setup.cfg
plugins: requests-mock-1.5.2, xdist-1.24.0, travis-fold-1.3.0, timeout-1.3.2, reqs-0.2.0, reorder-0.1.1, profiling-1.3.0, mock-1.10.0, instafail-0.3.0, forked-0.2, error-for-skips-1.0.0, env-0.6.2, cov-2.6.0
timeout: 60.0s
timeout method: signal
timeout func_only: False
collecting 3 items                                                                                              debug2: channel 0: window 997927 sent adjust 50649
collected 119 items                                                                                             

coala_quickstart/generation/Project.py .                                                                  [  0%]
coala_quickstart/generation/Utilities.py .                                                                [  1%]
coala_quickstart/info_extraction/Utilities.py .                                                           [  2%]
coala_quickstart/interaction/Logo.py .                                                                    [  3%]
tests/generation/BearsTest.py .............                                                               [ 14%]
tests/generation/InfoCollectorTest.py .                                                                   [ 15%]
tests/generation/ProjectTest.py ....                                                                      [ 18%]
tests/generation/SettingsClassTest.py ..                                                                  [ 20%]
tests/generation/SettingsFillingTest.py ...........                                                       [ 29%]
tests/generation/SettingsTest.py ...                                                                      [ 31%]
tests/generation/UtilitiesTest.py .......................                                                 [ 51%]
tests/green_mode/QuickstartBearTest.py .                                                                  [ 52%]
tests/green_mode/filename_operationsTest.py ..                                                            [ 53%]
tests/green_mode/green_modeTest.py ..............................                                         [ 78%]
tests/green_mode/test_dir/file_aggregatorTest.py .                                                        [ 79%]
tests/info_extraction/InfoExtractorTest.py ........                                                       [ 86%]
tests/info_extraction/InfoScopeTest.py ...                                                                [ 89%]
tests/info_extraction/InfoTest.py ...                                                                     [ 91%]
tests/info_extractors/EditorconfigInfoExtractorTest.py .                                                  [ 92%]
tests/info_extractors/GemfileInfoExtractorTest.py .                                                       [ 93%]
tests/info_extractors/GruntfileInfoExtractorTest.py .                                                     [ 94%]
tests/info_extractors/PackageJSONInfoExtractorTest.py ..                                                  [ 95%]
tests/info_extractors/UtilitiesTest.py ..                                                                 [ 97%]
tests/interaction/LogoTest.py ...                                                                         [100%]
Profiling (from /home/ubuntu/coala-quickstart/prof/combined.prof):
Thu Nov  8 10:19:18 2018    /home/ubuntu/coala-quickstart/prof/combined.prof

         39178071 function calls (37748258 primitive calls) in 68.071 seconds

   Ordered by: cumulative time
   List reduced from 5363 to 20 due to restriction <20>

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
      119    0.001    0.000   68.166    0.573 runner.py:105(pytest_runtest_call)
      115    0.001    0.000   68.153    0.593 unittest.py:182(runtest)
      115    0.000    0.000   68.152    0.593 case.py:652(__call__)
      115    0.005    0.000   68.151    0.593 case.py:570(run)
       39    0.002    0.000   66.537    1.706 ConfigurationGathering.py:420(get_filtered_bears)
       39    0.000    0.000   66.453    1.704 ConfigurationGathering.py:400(get_all_bears)
       39    0.003    0.000   65.195    1.672 Collectors.py:292(collect_all_bears_from_sections)
       17    0.001    0.000   63.745    3.750 Bears.py:17(filter_relevant_bears)
       17    0.001    0.000   63.716    3.748 Bears.py:42(<dictcomp>)
      297    0.099    0.000   55.549    0.187 Collectors.py:157(collect_bears)
403273/24184    1.716    0.000   55.521    0.002 decorators.py:22(yield_once_generator)
    45554    0.455    0.000   55.022    0.001 Collectors.py:110(icollect_bears)
   109890    0.473    0.000   43.340    0.000 Collectors.py:22(_import_bears)
   174523    1.547    0.000   42.751    0.000 Importers.py:129(iimport_objects)
   174523    1.772    0.000   26.143    0.000 Importers.py:98(_iimport_objects)
        1    0.000    0.000   19.793   19.793 BearsTest.py:171(test_filter_relevant_bears_with_extracted_info)
        1    0.000    0.000   11.239   11.239 BearsTest.py:136(test_filter_relevant_bears_green_mode)
   129266    4.918    0.000   10.851    0.000 inspect.py:317(getmembers)
      297    0.004    0.000    9.910    0.033 Section.py:138(bear_dirs)
      297    0.004    0.000    9.806    0.033 Collectors.py:333(collect_registered_bears_dirs)



----------- coverage: platform linux, python 3.6.6-final-0 -----------
Name                                                           Stmts   Miss Branch BrPart  Cover   Missing
----------------------------------------------------------------------------------------------------------
coala_quickstart/Constants.py                                      7      0      0      0   100%
coala_quickstart/Strings.py                                        8      0      0      0   100%
coala_quickstart/coala_quickstart.py                              51      0      2      0   100%
coala_quickstart/generation/InfoCollector.py                      20      0      8      0   100%
coala_quickstart/generation/InfoMapping.py                         3      0      0      0   100%
coala_quickstart/generation/Project.py                            58      0     22      0   100%
coala_quickstart/generation/Settings.py                           44      0     18      0   100%
coala_quickstart/generation/SettingsClass.py                     117      0     56      0   100%
coala_quickstart/generation/SettingsFilling.py                    51      0     27      0   100%
coala_quickstart/generation/Utilities.py                         133      0     75      0   100%
coala_quickstart/generation/__init__.py                            0      0      0      0   100%
coala_quickstart/green_mode/QuickstartBear.py                     15      0      6      0   100%
coala_quickstart/green_mode/Setting.py                            14      0      8      0   100%
coala_quickstart/green_mode/file_aggregator.py                    45      0     22      0   100%
coala_quickstart/green_mode/filename_operations.py                77      0     40      0   100%
coala_quickstart/info_extraction/Info.py                          16      0      2      0   100%
coala_quickstart/info_extraction/InfoExtractor.py                 50      0     24      0   100%
coala_quickstart/info_extraction/InfoScope.py                     37      0     28      0   100%
coala_quickstart/info_extraction/Information.py                   63      0      0      0   100%
coala_quickstart/info_extraction/Utilities.py                     14      0     12      0   100%
coala_quickstart/info_extraction/__init__.py                       0      0      0      0   100%
coala_quickstart/info_extractors/PackageJSONInfoExtractor.py      27      0     10      0   100%
coala_quickstart/info_extractors/Utilities.py                     19      0     18      0   100%
coala_quickstart/info_extractors/__init__.py                       0      0      0      0   100%
coala_quickstart/interaction/Logo.py                              19      0      8      0   100%
coala_quickstart/interaction/__init__.py                           0      0      0      0   100%
coala_quickstart/green_mode/green_mode.py                        325      2    187      0    99%   359, 393
----------------------------------------------------------------------------------------------------------
TOTAL                                                           1213      2    573      0    99%

FAIL Required test coverage of 100% not reached. Total coverage: 99.89%

========================================== 119 passed in 71.39 seconds ==========================================

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants