diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4fadb264ce24219f4e8f3d5cb0e06b2cd0a7621a..085cc2af9cfeaf85f7db5111e97de84ac7289a9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,14 +24,14 @@ exitcode-jessie: - python setup.py install - coverage erase - coverage run --include=tupak/* -a test/detector_tests.py - - coverage run --include=tupak/* --omit=tupak/* -a test/example_tests.py - - coverage run --include=tupak/* --omit=tupak/* -a test/noise_realisation_tests.py - coverage run --include=tupak/* -a test/prior_tests.py - coverage run --include=tupak/* -a test/sampler_tests.py - - coverage run --include=tupak/* --omit=tupak/* -a test/tests.py - coverage run --include=tupak/* -a test/waveform_generator_tests.py - coverage html - coverage-badge -o coverage_badge.svg -f + - coverage run --omit=* -a test/example_tests.py + - coverage run --omit=* -a test/noise_realisation_tests.py + - coverage run --omit=* -a test/tests.py # Make the documentation - pip install -r docs/requirements.txt diff --git a/test/detector_tests.py b/test/detector_tests.py index 346f59f411f25f1894ee2f59d7749d416cd22d7a..9c2c459c966f17f9344010a1282aea7d6c1aa831 100644 --- a/test/detector_tests.py +++ b/test/detector_tests.py @@ -389,3 +389,7 @@ class TestDetector(unittest.TestCase): self.ifo.data = np.array([2]) self.ifo.power_spectral_density.power_spectral_density_interpolated = MagicMock(return_value=np.array([1])) self.assertTrue(np.array_equal(self.ifo.whitened_data, np.array([2]))) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/sampler_tests.py b/test/sampler_tests.py index dad95096364678d7474a9a7b42f115af21169ed2..b380df85992e4c33c05b2d2702a04687f63f504d 100644 --- a/test/sampler_tests.py +++ b/test/sampler_tests.py @@ -127,4 +127,8 @@ class TestSampler(unittest.TestCase): def test_base_run_sampler(self): sampler_copy = copy.copy(self.sampler) self.sampler._run_external_sampler() - self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__) \ No newline at end of file + self.assertDictEqual(sampler_copy.__dict__, self.sampler.__dict__) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/waveform_generator_tests.py b/test/waveform_generator_tests.py index 0292cfaba5ab25d673a2cbebdd7379182b795987..34cc7925d4ba3aa788781810cff60df99247798b 100644 --- a/test/waveform_generator_tests.py +++ b/test/waveform_generator_tests.py @@ -96,4 +96,4 @@ class TestSourceModelSetter(unittest.TestCase): if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()