Skip to content

Commit

Permalink
disable coveralls for Linux + increased testing test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed Oct 20, 2024
1 parent 741b082 commit e7f08c5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/abc2_on_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
pip install coveralls PyYAML pytest pytest-cov
py.test --cov
coverage report -m
coveralls
# disabled linux reports to avoid mixing with windows ones
# coveralls
continue-on-error: false
12 changes: 12 additions & 0 deletions tests/lib/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,24 @@ def setUp(self):
self.t = Testing(
root_folder=os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir)))

def test_init(self):
_ = Testing()

def test_root_folder(self):
self.assertTrue(os.path.exists(self.t.root_folder))
self.assertGreater(len(Testing.files(folder=self.t.root_folder, ext="")), 0)

def test_root_data_folder(self):
self.assertTrue(os.path.exists(self.t.root_data_folder()))

def test_input_data(self):
self.assertTrue(os.path.exists(self.t.input_data_folder()))
self.assertGreater(len(self.t.input_test_files(ext="")), 0)
self.assertGreaterEqual(len(self.t.input_data_sub_folders()), 0)

def test_input_data_sub_folders(self):
self.assertGreaterEqual(len(self.t.input_data_sub_folders()), 0)

def test_download_data(self):
self.assertTrue(os.path.exists(self.t.download_data_folder()))
self.assertGreaterEqual(len(self.t.download_test_files(ext="")), 0)
Expand All @@ -28,6 +37,9 @@ def test_temp_data(self):
self.assertTrue(os.path.exists(self.t.temp_data_folder()))
self.assertGreaterEqual(len(self.t.temp_test_files(ext="")), 0)

def test_temp_data_sub_folders(self):
self.assertGreaterEqual(len(self.t.temp_data_sub_folders()), 0)

def test_output_data(self):
self.assertTrue(os.path.exists(self.t.output_data_folder()))
self.assertGreaterEqual(len(self.t.output_test_files(ext="")), 0)
Expand Down

0 comments on commit e7f08c5

Please sign in to comment.