aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2019-04-15 10:18:59 -0400
committerMatt Rendina <mrendina@stsci.edu>2019-04-15 13:00:15 -0400
commit01957741c8bb74cec6e72c734ba0b8589efa1f72 (patch)
treefeff8f7acce78abace30aaf1a45f6dafbf716efb /tests
parentd9d2b53ce76d4654f70766acb846c1b3baf5588a (diff)
downloadjscu_refactor-01957741c8bb74cec6e72c734ba0b8589efa1f72.tar.gz
Add tests dir; try out inclusion into jenkinsfile
Cleanup jenkinsfile. Add hook instalation script Rename jenkinsfile.test Update hook to use renamed Jenkinsfile
Diffstat (limited to 'tests')
-rwxr-xr-xtests/access_env_var.sh4
-rw-r--r--tests/setup.cfg3
-rw-r--r--tests/test_25pass.py11
-rw-r--r--tests/test_75pass.py11
-rw-r--r--tests/test_alwaysfail.py2
-rw-r--r--tests/test_alwayspass.py3
6 files changed, 34 insertions, 0 deletions
diff --git a/tests/access_env_var.sh b/tests/access_env_var.sh
new file mode 100755
index 0000000..b7a5b3f
--- /dev/null
+++ b/tests/access_env_var.sh
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+echo "This is the value of SECRET_VALUE"
+echo "${SECRET_VALUE}"
diff --git a/tests/setup.cfg b/tests/setup.cfg
new file mode 100644
index 0000000..fed90fd
--- /dev/null
+++ b/tests/setup.cfg
@@ -0,0 +1,3 @@
+[tool:pytest]
+junit_family=xunit2
+results_root = datb-generic
diff --git a/tests/test_25pass.py b/tests/test_25pass.py
new file mode 100644
index 0000000..a18bb9c
--- /dev/null
+++ b/tests/test_25pass.py
@@ -0,0 +1,11 @@
+def test_25_1of4():
+ assert 1==1
+
+def test_25_2of4():
+ assert 1==2
+
+def test_25_3of4():
+ assert 1==3
+
+def test_25_4of4():
+ assert 1==4
diff --git a/tests/test_75pass.py b/tests/test_75pass.py
new file mode 100644
index 0000000..88028a7
--- /dev/null
+++ b/tests/test_75pass.py
@@ -0,0 +1,11 @@
+def test_75_1of4():
+ assert 1==1
+
+def test_75_2of4():
+ assert 1==1
+
+def test_75_3of4():
+ assert 1==1
+
+def test_75_4of4():
+ assert 1==4
diff --git a/tests/test_alwaysfail.py b/tests/test_alwaysfail.py
new file mode 100644
index 0000000..c3c2558
--- /dev/null
+++ b/tests/test_alwaysfail.py
@@ -0,0 +1,2 @@
+def test_alwaysfail():
+ assert 1==2
diff --git a/tests/test_alwayspass.py b/tests/test_alwayspass.py
new file mode 100644
index 0000000..7e84d20
--- /dev/null
+++ b/tests/test_alwayspass.py
@@ -0,0 +1,3 @@
+def test_alwayspass():
+ assert 1==1
+