From 7a8c0fe6adefd23cda38218ec63b58454d0a2344 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Wed, 4 Jun 2014 12:18:15 +0200 Subject: [PATCH] Added a basic testing structure --- .travis.yml | 15 +++++++++++++++ tests/__init__.py | 1 + tests/test_sourceloader.py | 5 +++++ 3 files changed, 21 insertions(+) create mode 100644 .travis.yml create mode 100644 tests/__init__.py create mode 100644 tests/test_sourceloader.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7a243ba --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +# Config file for automatic testing at travis-ci.org + +language: python +python: 2.7 + +# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors +install: + - pip install flake8 Scrapy docopt + +# command to run tests, e.g. python setup.py test +script: + - nosetests tests + - make lint + +after_success: coveralls \ No newline at end of file diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..34a27d6 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1 @@ +__author__ = 'jdekker' diff --git a/tests/test_sourceloader.py b/tests/test_sourceloader.py new file mode 100644 index 0000000..c7ccff9 --- /dev/null +++ b/tests/test_sourceloader.py @@ -0,0 +1,5 @@ +import unittest + + +class TestSourceloader(unittest.TestCase): + pass \ No newline at end of file