Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Follow up to PR #341 integrate functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
magopian committed Nov 5, 2015
1 parent bc0ac75 commit e4193a7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ The same rule applies for the end of a file and for files with only one line.
Unit tests can be run with

```bash
nosetests tests/
nosetests
```

Functional tests, which take longer, can be run with
Expand All @@ -334,12 +334,6 @@ Then make a cup of tea while all of those tests run. It takes a while. If you
have more than two cores on your machine or you don't mind pwnage, you can try
to increase the number of parallel processes used for testing.

If you just want to run all the tests at once, run

```bash
nosetests --processes=2
```


## Updating

Expand Down
3 changes: 0 additions & 3 deletions functional_tests/test_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@


def _validator(file_path, for_appversions=None, overrides=None):
# TODO(Kumar) This is currently copied from Zamboni because
# it's really hard to import from zamboni outside of itself.
# TODO(Kumar) remove this when validator is fixed, see bug 620503
from validator.testcases import scripting
import validator
import validator.constants
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[nosetests]
# The following will be overriden by the command-line if explicitely running
# those tests, eg nosetests functional_tests/.
exclude=^functional_tests/*
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ commands =

[testenv:functional-tests]
commands =
nosetests --with-xunit functional_tests/
git submodule sync -q
git submodule update --init
nosetests --with-xunit --processes=2 functional_tests/

0 comments on commit e4193a7

Please sign in to comment.