Archiv für die Kategorie ‘English’

NCover: Attribute-Based Type Exclusion, but the wrong way round…

Dienstag, 21. Februar 2006

With Version 1.5.2, NCover introduced a Attribute-Based Type Exclusion. It works, but not as I expected.

I normally use NCover together with my test code. When I have a class to test that throws an exception the test function is not covered completely.
Code Coverage without excluded Attribute
The function BarTest() is only covered to 67% as the end of the function is not executed because the Exception was thrown. I was waiting for the possibility to define that a function does not need to be covered with adding an attribute to the Function. But when I add an Attribute to the function and define this Attribute to be excluded (with //ea AttributeName), the Function is not covered.
Code Coverage with excluded Attribute
So instead of having a higher code coverage I have a lower code coverage. Not the result I was expecting from this feature.
But maybe this will change in the future. I keep watching…

Jay Fields Thoughts: Creating an interface for testing

Montag, 20. Februar 2006

The article from Jay Fields about creating an interface for testing should be read by each developer that uses unit tests (and that should be every developer!) I had several discussions about my ‘Interface-flooded’ code, and this article is a good explanation for my behaviour.

Mocks Aren’t Stubs or State-Based vs Ineraction-Based Tests

Sonntag, 19. Februar 2006

While looking for a definition for Stubs and Mocks I stumbled over an article from Martin Fowler that makes a comparing between State-Based and Interaction-Based testing. Never thougt about my tests in this way, worth reading it.

German or English / Deutsch oder Englisch ?

Mittwoch, 15. Februar 2006

For English text read second paragraph

Nachdem ich nun schon ein paar Blog-Einträge geschrieben habe stellt sich mir die Frage, ob ich weiterhin auf Deutsch oder neu auf Englisch schreiben soll. Ich wollte eigentlich auf Deutsch schreiben, da es schon viele Blogs im Softwareentwicklungs-Bereich gibt, die auf Englisch verfasst sind. Da ich aber auch in englischen Foren schreibe und dort manchmal auf mein Blog verweise bietet es sich an, die Einträge auf Englisch zu schreiben. Schlussentlich habe ich mich entschieden, mein Blog zweisprachig zu führen. Das heisst, ich werde meine Einträge je nach Thema auf Deutsch und/oder Englisch schreiben (nicht alle Einträge werden in beiden Sprachen erscheinen!) Dafür habe ich auch die Kategorien Deutsch und English erstellt.

Having written some entries in my blog I was thinking about keep writing in german or change to english. I started with german because on the internet there are several blogs about software development that are written in english. But as I write also in english message boards and there put a link to my Blog it would be better to write my Blog in english. Finally I decided to have my Blog bilingual. That means that I will write my entries in german and/or english, depending on the subject (not all entries will be released in both languages!) For this I have created the Categories Deutsch and English.