Added a script to run the existing unit tests.

Change-Id: I12d15ff1793b54d1a843cd20d71d1387cf87f6eb
This commit is contained in:
Richard (Rick) Hawkins 2013-12-05 23:32:32 -06:00
parent e40390915c
commit bab59f68ed
3 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,6 +17,7 @@ develop-eggs
pip-log.txt
# Unit test / coverage reports
test-reporting-results*
.coverage
.tox

17
run_tests.sh Executable file
View File

@ -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

3
test-requirements.txt Normal file
View File

@ -0,0 +1,3 @@
unittest2
mock
flake8