Yes, unittest is a good testing framework and it should be sufficient to
suit the needs of many projects. If code seems hard to test with unittest,
I would first consider simplifying the code before switching to another
framework. An advantage of this framework is that it's part of the Python
standard lib, so your project doesn't need more dependencies and more
potential contributors to your project are likely to be familiar with it.
That being said, there are indeed other testing frameworks. Personally, I
really like pytest because it is one of those rare projects that have
pleasantly surprised me on several occasions by just doing the right
thing. I also like how pytest feels pythonish whereas unittest feels
javaish because it was intended to be easy to use for people familiar
with other the xUnit frameworks. It also has strong support for fixture
and state management which can probably be achieved with unittest but
feels more natural with pytest.
For other testing frameworks, I really like this taxonomy:
https://wiki.python.org/moin/PythonTestingToolsTaxonomy
* Blanca Mancilla <
blancal...@gmail.com> [2015-09-08 18:29 -0400]:
> Thanks for all the comments. I am figuring out what I need and want to do.
> I still can't get it to run.
>
> As a general question, is unittest a good testing framework?
[snip]