fabric8-analytics / fabric8-analytics-license-analysis

License Analysis
GNU General Public License v3.0
6 stars 25 forks source link

Run tests on CI #64

Closed tisnik closed 6 years ago

tisnik commented 6 years ago

Tracked in https://github.com/openshiftio/openshift.io/issues/2094

centos-ci commented 6 years ago

@tisnik Your image is available in the registry: docker pull registry.devshift.net/fabric8-analytics/license-analysis:SNAPSHOT-PR-64

centos-ci commented 6 years ago

@tisnik Your image is available in the registry: docker pull registry.devshift.net/fabric8-analytics/license-analysis:SNAPSHOT-PR-64

centos-ci commented 6 years ago

@tisnik Your image is available in the registry: docker pull registry.devshift.net/fabric8-analytics/license-analysis:SNAPSHOT-PR-64

tisnik commented 6 years ago

Actual output:

platform linux -- Python 3.4.5, pytest-3.4.0, py-1.5.2, pluggy-0.6.0 -- /root/payload/venv/bin/python3
cachedir: .pytest_cache
rootdir: /root/payload/tests, inifile:
plugins: cov-2.5.1

collecting 0 items                                                             
collecting 7 items                                                             
collecting 13 items                                                            
collecting 19 items                                                            
collecting 28 items                                                            
collected 28 items                                                             

test_directed_graph.py::test_add_vertex PASSED                           [  3%]
test_directed_graph.py::test_get_vertex PASSED                           [  7%]
test_directed_graph.py::test_get_vertex_ids PASSED                       [ 10%]
test_directed_graph.py::test_get_vertices PASSED                         [ 14%]
test_directed_graph.py::test_add_edge PASSED                             [ 17%]
test_directed_graph.py::test_find_vertex PASSED                          [ 21%]
test_directed_graph.py::test_find_common_reachable_vertex PASSED         [ 25%]
test_license_analysis.py::test_print_graph PASSED                        [ 28%]
test_license_analysis.py::test_compute_rep_license_successful PASSED     [ 32%]
test_license_analysis.py::test_compute_rep_license_unknown PASSED        [ 35%]
test_license_analysis.py::test_compute_rep_license_conflict PASSED       [ 39%]
test_license_analysis.py::test_compute_rep_license_conflict_2 PASSED     [ 42%]
test_license_analysis.py::test_check_compatibility PASSED                [ 46%]
test_stack_license.py::test_component_license_conflict PASSED            [ 50%]
test_stack_license.py::test_stack_license_conflict PASSED                [ 53%]
test_stack_license.py::test_stack_license_successful PASSED              [ 57%]
test_stack_license.py::test_stack_license_filter PASSED                  [ 60%]
test_stack_license.py::test_component_license_unknown PASSED             [ 64%]
test_stack_license.py::test_component_license_failure PASSED             [ 67%]
test_vertex.py::test_initial_state PASSED                                [ 71%]
test_vertex.py::test_get_id PASSED                                       [ 75%]
test_vertex.py::test_add_neigbor PASSED                                  [ 78%]
test_vertex.py::test_get_weight PASSED                                   [ 82%]
test_vertex.py::test_properties PASSED                                   [ 85%]
test_vertex.py::test_string_representation_1 PASSED                      [ 89%]
test_vertex.py::test_string_representation_2 PASSED                      [ 92%]
test_vertex.py::test_string_representation_4 PASSED                      [ 96%]
test_vertex.py::test_string_representation_5 PASSED                      [100%]

========================== 28 passed in 0.44 seconds ===========================
============================= test session starts ==============================
platform linux -- Python 3.4.5, pytest-3.4.0, py-1.5.2, pluggy-0.6.0 -- /root/payload/venv/bin/python3
cachedir: .pytest_cache
rootdir: /root/payload/tests, inifile:
plugins: cov-2.5.1

collecting 0 items                                                             
collecting 7 items                                                             
collecting 13 items                                                            
collecting 19 items                                                            
collecting 28 items                                                            
collected 28 items                                                             

test_directed_graph.py::test_add_vertex PASSED                           [  3%]
test_directed_graph.py::test_get_vertex PASSED                           [  7%]
test_directed_graph.py::test_get_vertex_ids PASSED                       [ 10%]
test_directed_graph.py::test_get_vertices PASSED                         [ 14%]
test_directed_graph.py::test_add_edge PASSED                             [ 17%]
test_directed_graph.py::test_find_vertex PASSED                          [ 21%]
test_directed_graph.py::test_find_common_reachable_vertex PASSED         [ 25%]
test_license_analysis.py::test_print_graph PASSED                        [ 28%]
test_license_analysis.py::test_compute_rep_license_successful PASSED     [ 32%]
test_license_analysis.py::test_compute_rep_license_unknown PASSED        [ 35%]
test_license_analysis.py::test_compute_rep_license_conflict PASSED       [ 39%]
test_license_analysis.py::test_compute_rep_license_conflict_2 PASSED     [ 42%]
test_license_analysis.py::test_check_compatibility PASSED                [ 46%]
test_stack_license.py::test_component_license_conflict PASSED            [ 50%]
test_stack_license.py::test_stack_license_conflict PASSED                [ 53%]
test_stack_license.py::test_stack_license_successful PASSED              [ 57%]
test_stack_license.py::test_stack_license_filter PASSED                  [ 60%]
test_stack_license.py::test_component_license_unknown PASSED             [ 64%]
test_stack_license.py::test_component_license_failure PASSED             [ 67%]
test_vertex.py::test_initial_state PASSED                                [ 71%]
test_vertex.py::test_get_id PASSED                                       [ 75%]
test_vertex.py::test_add_neigbor PASSED                                  [ 78%]
test_vertex.py::test_get_weight PASSED                                   [ 82%]
test_vertex.py::test_properties PASSED                                   [ 85%]
test_vertex.py::test_string_representation_1 PASSED                      [ 89%]
test_vertex.py::test_string_representation_2 PASSED                      [ 92%]
test_vertex.py::test_string_representation_4 PASSED                      [ 96%]
test_vertex.py::test_string_representation_5 PASSED                      [100%]

----------- coverage: platform linux, python 3.4.5-final-0 -----------
Name                                                       Stmts   Miss  Cover   Missing
----------------------------------------------------------------------------------------
/root/payload/src/__init__.py                                  0      0   100%
/root/payload/src/config.py                                    7      0   100%
/root/payload/src/directed_graph.py                           87      2    98%   69, 83
/root/payload/src/license_analysis.py                        273     36    87%   84-116, 539-542, 600
/root/payload/src/rest_api.py                                 24     24     0%   3-51
/root/payload/src/stack_license.py                           120     19    84%   68, 108-111, 157-159, 193-197, 215-220
/root/payload/src/util/__init__.py                             0      0   100%
/root/payload/src/util/data_store/__init__.py                  0      0   100%
/root/payload/src/util/data_store/abstract_data_store.py      17      7    59%   12, 17, 22, 27, 32, 37, 42
/root/payload/src/util/data_store/local_filesystem.py         44     17    61%   25, 37-39, 49-54, 58-60, 65, 70, 89-90
/root/payload/src/util/data_store/s3_data_store.py            61     61     0%   3-93
----------------------------------------------------------------------------------------
TOTAL                                                        633    166    74%

========================== 28 passed in 0.76 seconds ===========================
centos-ci commented 6 years ago

@tisnik Your image is available in the registry: docker pull registry.devshift.net/fabric8-analytics/license-analysis:SNAPSHOT-PR-64