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

create a testsuite #2

Open
evertlammerts opened this issue Mar 28, 2013 · 3 comments
Open

create a testsuite #2

evertlammerts opened this issue Mar 28, 2013 · 3 comments

Comments

@evertlammerts
Copy link
Contributor

I'm making a start with white- and blackbox testing. I will start with writing unit tests for SemanticizerFlaskServer which is the entry point of the application. This can then be used to create a text fixture for black box testing of the API.

For now I'm using stdlib's unittest and mock.

I will have to refactor the existing code to make it suitable for unit testing. I've created a separate branch for this (evert). I'll document all changes in tickets. When everybody agrees on the changes we can merge the branch back into master.

@dodijk
Copy link
Contributor

dodijk commented Mar 28, 2013

Plan sounds good. I see a lot of people using nose, might also be worth a look. Some of the files contain some simple testing examples, such as processors/semanticize.py and processors/feature.py.

@evertlammerts
Copy link
Contributor Author

With commit b5ca7d6 we're getting close to small units of testable code. Broke logging in the process though, still a short way to go.

@larsmans
Copy link
Contributor

Nose is much easier. It doesn't require all these useless testcase classes: just define a bunch of functions called test_*.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants