From bab59f68edd12f199a4e14d9a5d4618df0cf1ab1 Mon Sep 17 00:00:00 2001 From: "Richard (Rick) Hawkins" Date: Thu, 5 Dec 2013 23:32:32 -0600 Subject: [PATCH] Added a script to run the existing unit tests. Change-Id: I12d15ff1793b54d1a843cd20d71d1387cf87f6eb --- .gitignore | 1 + run_tests.sh | 17 +++++++++++++++++ test-requirements.txt | 3 +++ 3 files changed, 21 insertions(+) create mode 100755 run_tests.sh create mode 100644 test-requirements.txt diff --git a/.gitignore b/.gitignore index e0c80e9..e261e5f 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ develop-eggs pip-log.txt # Unit test / coverage reports +test-reporting-results* .coverage .tox diff --git a/run_tests.sh b/run_tests.sh new file mode 100755 index 0000000..256c72e --- /dev/null +++ b/run_tests.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Copyright 2013 Rackspace +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +flake8 cafe +python -m unittest discover -t cafe -s cafe/tests diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..205b216 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,3 @@ +unittest2 +mock +flake8