perspectives, opinions, dogma, and an elephant

I had assumed that everyone has heard the story about the blind men and the elephant.
However, in a very non-scientific poll of a hand full of fellow engineers at my day job, only about half had.

So I was going to try to quote it here, but when I looked up a reference for it, I came across a joke that amused the pants off me.

So here’s the joke:

Six blind elephants were discussing what men were like. After arguing they decided to find one and determine what it was like by direct experience. The first blind elephant felt the man and declared, ‘Men are flat.’ After the other blind elephants felt the man, they agreed.


“We have to remember that what we observe is not nature in itself, but nature exposed to our method of questioning.”- Werner Heisenberg

wikipedia entry

Well. I thought it was funny.

Trust me that this ties in with software development and testing.

[Read more…]

Book update: Python Testing with unittest, nose, pytest

This is a collection of posts that I felt would be really handy to have available all together.

Of course the introduction posts are in there too. But this is really a lot of information about quickly getting up to speed on unittest, nose, and pytest.

I’ve just updated it to fix some “glitches” in the initial eBook conversion process.

Python Testing with unittest, nose, pytest

What’s there:


[Read more…]

Why Most Unit Testing is Waste

I don’t rememember how I ran across this article by James O Coplien. However, I was immediately impressed with the thought and experience that went into this paper.
Regardless of your viewpoints towards unit tests vs. other types of automated tests, this article is important to read.
If your first reaction to the title is anger, please take a deep breath, try to keep an open mind, and actually READ what Cope has to say.
I am going to reserve my own reactions to this to a future post, as I don’t want to color your views before you read it.
I am posting the entire article with no changes other than formatting.

[Read more…]

Best of python testing tutorials, now in epub, mobi, and pdf

I’ve put together a really good collection of posts, including tutorials for pytest, unittest, and nose, into an eBook format. Actually, three formats.

I want it!

This book is still a work in progress…
What does that mean?

I’ve updated the posts on unittest introduction and fixtures.
The nose chapters, and pytest chapters are still a little glitchy.
However, with proceeds from the book sale to help offset the cost, I’m now writing on a nice laptop that will hopefully get me writing more.

So, Updates are coming.
If you buy now at $5, you’ll get notified when things get fixed.

Python Testing with unittest, nose, pytest

Here’s what’s there:

• unittest
– unittest introduction
* Overview of unittest
* Running unittests
* Test discovery
* unittest examples
– unittest fixture syntax and flow reference
* Software Test Fixtures
* Common Case Example
* Full Test Fixture Example
* Full Test Fixture Flow
* Adding Cleanup Calls
* Skipping tests within setUp

• nose
– nose introduction
* Nose example
* Running nose
* Nose fixtures
* Nose assert_equals * Test discovery
* Running unittests from nose
* Running doctests from nose
– nose support for unittest style fixtures
– nose fixture reference
* Method, Function, Package, Module, and Class fixtures
* Full example
* Control flow
* Alternative names for fixtures

• pytest
– pytest introduction
* pytest example
* Running pytest
* pytest fixtures
* Test discovery
* Running unittests from pytest
* Running doctests from pytest
* Running nose tests from pytest
– pytest fixtures
* pytest unittest style fixtures
* pytest xUnit style fixtures
* pytest fixtures easy example
* pytest fixtures nuts and bolts
* pytest session scoped fixtures