Skip to content

Commit

Permalink
Distinction between unit and functional done
Browse files Browse the repository at this point in the history
  • Loading branch information
heynemann committed Aug 6, 2010
1 parent 7742d57 commit cf10adf
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Expand Up @@ -5,7 +5,8 @@ help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " clean to clean garbage left by builds and installation"
@echo " compile to compile .py files (just to check for syntax errors)"
@echo " test to execute all simple-db-migrate tests"
@echo " unit to execute all db-migrate unit tests"
@echo " func to execute all db-migrate functional tests"
@echo " install to install simple-db-migrate"
@echo " build to build without installing simple-db-migrate"
@echo " dist to create egg for distribution"
Expand All @@ -29,10 +30,16 @@ metrics:
@pylint db_migrate.ui db_migrate.domain
@pyflakes db_migrate/ui db_migrate/domain

test: compile
unit: compile
@make clean
@echo "Starting tests..."
@nosetests -s --verbose --with-coverage --cover-erase --cover-package=db_migrate tests/*
@nosetests -s --verbose --with-coverage --cover-erase --cover-package=db_migrate tests/unit/*
@make clean

func: compile
@make clean
@echo "Starting tests..."
@nosetests -s --verbose --with-coverage --cover-erase --cover-package=db_migrate tests/functional/*
@make clean

install:
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions tests/unit/__init__.py
@@ -0,0 +1,3 @@
#!/usr/bin/env python
# encoding: utf-8

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions tests/unit/domain/__init__.py
@@ -0,0 +1,2 @@
#!/usr/bin/env python
# encoding: utf-8
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cf10adf

Please sign in to comment.