Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run UnitTest with nose #81

Closed
wants to merge 1 commit into from
Closed

Run UnitTest with nose #81

wants to merge 1 commit into from

Conversation

narusemotoki
Copy link
Contributor

Weekly cleanup.

We don't need to distribute test file. So I exclude it from main package.
Also I changed testing method. Run test with nose, we can see this kind of
result. It has color and coverage.

% nosetests --rednose --with-coverage  --cover-package=gengo
................

Name                Stmts   Miss  Cover
---------------------------------------
gengo.py                2      0   100%
gengo/_version.py       1      0   100%
gengo/gengo.py        178     61    66%
gengo/mockdb.py         3      0   100%
---------------------------------------
TOTAL                 184     61    67%
-----------------------------------------------------------------------------
16 tests run in 1.884 seconds (16 tests passed)

We don't need to distribute test file. So I exclude it from main package.
Also I changed testing method. Run test with nose, we can see this kind of
result. It has color and coverage.

```
% nosetests --rednose --with-coverage  --cover-package=gengo
................

Name                Stmts   Miss  Cover
---------------------------------------
gengo.py                2      0   100%
gengo/_version.py       1      0   100%
gengo/gengo.py        178     61    66%
gengo/mockdb.py         3      0   100%
---------------------------------------
TOTAL                 184     61    67%
-----------------------------------------------------------------------------
16 tests run in 1.884 seconds (16 tests passed)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant