andreas.schlapsi

Second Python Coding Dojo in Vienna

On Wednesday, September 21, 2011, the next Python Coding Dojo will take place at the monthly meeting of the Python User Group Austria in the Metalab. Python developers of all experience levels and people interested in Python are welcome.

What is a Coding Dojo?

A coding dojo is a meeting, which brings together a number of programmers to work on a programming challenge. It’s mainly about solving the task in a relaxed atmosphere together and to learn new things. A dojo is not a competition, but the focus is on the learning. More information is available at http://codingdojo.org.

Python Coding Dojo in Vienna

On Sunday, August 21, 2011, a Python Coding Dojo takes place at the August meeting of the Python User Group Austria in the Metalab. We’ll probably use the FizzBuzz kata. Python developers of all experience levels and people interested in Python are welcome.

What is a Coding Dojo?

A coding dojo is a meeting, which brings together a number of programmers to work on a programming challenge. It’s mainly about solving the task in a relaxed atmosphere together and to learn new things. A dojo is not a competition, but the focus is on the learning. More information is available on http://codingdojo.org.

.NET TDD Roundup #1

This is .NET TDD roundup #1. The .NET TDD roundup aggregates information of interest to .NET developers using TDD/BDD. If you have something interesting you have done or have run across, please send me the URL with a brief description via the contact link on my blog.

Test-Driven Development

Unit Test Frameworks

NUnit

MbUnit

  • XML Assertions in MbUnit v3
    • Yann Trévin writes about new assertions in the upcoming MbUnit 3.2 which will help with testing XML output.

When Is a Test a Unit Test?

Developers write their tests usually with a unit test framework. Often those tests are slow and unreadable. Almost always the tests communicate with a database, a file system, a web service or other external resources. Developers stop executing the tests regularly and further they stop writing tests entirely, because “unit tests” are so slow and hard to maintain. Michael Feathers has already summarized the criteria for unit tests in September 2005:

“A test is not a unit test if:

  • It talks to the database
  • It communicates across the network
  • It touches the file system
  • It can’t run at the same time as any of your other unit tests
  • You have to do special things to your environment (such as editing config files) to run it.

Tests that do these things aren’t bad. Often they are worth writing, and they can be written in a unit test harness. However, it is important to be able to separate them from true unit tests so that we can keep a set of tests that we can run fast whenever we make our changes.”

Developers often even do not write unit tests! They are writing integration tests instead. Sometimes it takes more than knowing the test attributes of the used unit test framework to write real unit tests!