diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..7f5c15eb6ca2d4823f0da351aea17c1e0e9d2048 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +hello +.coverage +*.pyc +.pytest_cache/ +*.[oa] +*~ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bc5f5b4f0e1b3a3e4ded9d00a2823b015eaca4dd..16e0c678f51baad00641230ae4d54cc60def91fc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,7 +49,7 @@ tests: - ssec_shared script: - pip install pytest pytest-cov - - pytest . + - pytest --cov=. test.py coverage: '/TOTAL.*\s+(\d+%)$/' needs: - job: build_hello_world diff --git a/test.py b/test.py index 37b359d362ad01a011ebf23ca6cfbdb87ffd3df2..704353eb4b80ecf651d4a2e29009a59d45f1cea5 100644 --- a/test.py +++ b/test.py @@ -5,7 +5,7 @@ def test_hello_world_c(): import subprocess bytes_out = subprocess.check_output(['./hello']) - assert bytes_out == b'Hello World!\n' + assert bytes_out == b'Hello, World!\n' def test_hello_world_py():