From c864e5ffad58fd9ab3f704758d5d4e93943d143b Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Tue, 12 May 2020 17:47:31 +0200 Subject: [PATCH] moved testing to a better place --- .gitignore | 1 + run_tests | 3 +++ bin/test_executenode.py => test_executenode.py | 2 +- bin/test_thinner.py => test_thinner.py | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 run_tests rename bin/test_executenode.py => test_executenode.py (99%) rename bin/test_thinner.py => test_thinner.py (99%) diff --git a/.gitignore b/.gitignore index e4e22d0..c726c6c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ build/ zfs_autobackup.egg-info .eggs/ __pycache__ +.coverage diff --git a/run_tests b/run_tests new file mode 100755 index 0000000..98939cd --- /dev/null +++ b/run_tests @@ -0,0 +1,3 @@ +#!/bin/bash +coverage run --source bin.zfs_autobackup -m unittest ; coverage report + diff --git a/bin/test_executenode.py b/test_executenode.py similarity index 99% rename from bin/test_executenode.py rename to test_executenode.py index 6ab6b70..b926860 100644 --- a/bin/test_executenode.py +++ b/test_executenode.py @@ -1,7 +1,7 @@ #default test stuff import unittest -from zfs_autobackup import * +from bin.zfs_autobackup import * import subprocess import time diff --git a/bin/test_thinner.py b/test_thinner.py similarity index 99% rename from bin/test_thinner.py rename to test_thinner.py index 8072493..f12abf9 100644 --- a/bin/test_thinner.py +++ b/test_thinner.py @@ -1,7 +1,7 @@ #default test stuff import unittest -from zfs_autobackup import * +from bin.zfs_autobackup import * #test specific import random