Skip to content

Random coverage

Anže Starič edited this page Oct 11, 2017 · 21 revisions

Coverage reports for some PRs report decrease in overall coverage, sometimes even when PR does not touch code at all. The following list links to the parts of code that are only sometimes tested. The problem can be fixed by writing a test that always test the linked code.

Widgets

Random test fails

======================================================================
ERROR: test_pause_continue (Orange.widgets.visualize.tests.test_owmosaic.MosaicVizRankTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\orange3-75xll\build\.test\lib\site-packages\Orange\widgets\visualize\tests\test_owmosaic.py", line 256, in test_pause_continue
    self.process_events(until=lambda: self.vizrank.saved_progress > 20)
  File "C:\projects\orange3-75xll\build\.test\lib\site-packages\Orange\widgets\tests\base.py", line 194, in process_events
    raise TimeoutError()
TimeoutError
----------------------------------------------------------------------
======================================================================
ERROR: test_subset_data (Orange.widgets.visualize.tests.test_owmosaic.MosaicVizRankTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/widgets/visualize/tests/test_owmosaic.py", line 348, in test_subset_data
    self.send_signal(self.widget.Inputs.data_subset, table_titanic[::20])
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/widgets/tests/base.py", line 235, in send_signal
    widget.handleNewSignals()
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/widgets/visualize/owmosaic.py", line 462, in handleNewSignals
    self.reset_graph()
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/widgets/visualize/owmosaic.py", line 475, in reset_graph
    self.update_graph()
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/widgets/visualize/owmosaic.py", line 983, in update_graph
    get_conditional_distribution(self.discrete_data[self.subset_indices], attr_list)
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/data/table.py", line 707, in __getitem__
    return self.from_table_rows(self, key)
  File "/home/travis/build/biolab/orange3/build/travis-test/Orange/data/table.py", line 457, in from_table_rows
    self.metas = source.metas[row_indices]
IndexError: boolean index did not match indexed array along dimension 0; dimension is 2201 but corresponding boolean dimension is 230946832
----------------------------------------------------------------------