Search And Destroy

Look out honey, ’cause I’m using technology!

Archive for the ‘Hey Man Now You're Really Living’ Category

You Were Just a Painted Face on a Trip Down to Suicide Road

Posted by kilfour on January 13, 2010

I just refactored the Agatha RequestProcessorTest.ExceptionHandling AcidTest to take advantage of the new QuickNet features and it is throwing a failure.

This might be a bug in QuickNet.
This might be an erroneous spec definition.
This might be a bug in Agatha.

I’m hoping for the latter ;-) .

I added the new features in order to deal with problems I face in a production environment.
Agatha, however, is a totally different thing. We’re testing a framework/lib, not an app.
Apart from the fact that definitely something is going wrong somewhere, this test clearly exposes some weaknesses of the newly implemented features.
F.i. :
– Shrinking does not seem to produce the minimal fail case.
– Reporting is too confusing.

I will have to fix this first in order to be able to determine whether the bug is in QuickNet, in Agatha, or in the spec definition.

And that, my friends, gets me all excited.

Posted in Agatha, Hey Man Now You're Really Living, QuickNet | Leave a Comment »

Evolutions

Posted by kilfour on November 1, 2009

In QuickNet

See : google code
- …
- Acid Test constuctor sets number of tests/transitions_per_test
Like so :

public LoggingInSpecs() : base(100, 5) { }

The AcidTest class, that all QuickNet test fixtures need to derive from, gives you the default of ten tests with a hundred transitions each.

protected AcidTest() : this(10, 100) { }

The LoggingIn tests only contains one transition, loggin in. The precondition for this states that a user can only log in succesfully once.
Therefore we need a lot of tests and a small number of transitions, as a successful login effectively stops the test.

- Removed the ability to keep running after failure
A feature I don’t use anymore that was unnessarily complicating the code.

- Simplified Setup/Teardown
Only one of them is really needed, again it was unnessarily complicating the code.

- Specs defined, and thus registered, that are untested during the run now result in failure.
Turns out to be pretty handy.

- some experimental examples added
Go check them out. Blog post coming up.

And some nice sugaring of the AddGenerator syntax
Stuff like :

AddGeneratorForField("MyItem", new IntGenerator(-100, 100));

Now looks like :

AddGeneratorForField(r => r.MyItem, new IntGenerator(-100, 100));

In my life
Yes, I do have one, even though some of my colleagues have recently expressed some doubts regarding this issue.
Last friday, at a Love Substitutes gig, the seed for a new musical endeavour was planted.
I’m all excited.

Posted in Hey Man Now You're Really Living | Leave a Comment »

If Love Was an Equation

Posted by kilfour on October 28, 2009

… we’d all be writing in assembler.

Posted in Hey Man Now You're Really Living | 1 Comment »

Spontaneous Symmetry Breaking

Posted by kilfour on October 21, 2009

There’s only one truth.
Applying a little pressure however, is usually enough to initiate a phase transition. And then various interpretations start to manifest themselves.

Posted in Hey Man Now You're Really Living, Rants | Leave a Comment »

But Mostly You Just Make Me Mad.

Posted by kilfour on October 16, 2009

Yeah, you know who you are.

Posted in Hey Man Now You're Really Living, Rants | 1 Comment »

Sometimes I’m So Sad

Posted by kilfour on October 16, 2009

We use the MVP pattern in the project I’m currently working on and put a lot on emphasis on unit-testing.
And then this in one of the winform views :

private void saveButton_Click(object sender, EventArgs e)
{
   ((ITabbedForm)this.FindForm()).SaveButton_Click(sender, e);
}

Code coverage for this view’s presenter is 100% btw.

Posted in C# Musings, Hey Man Now You're Really Living, Rants | 2 Comments »

Coding Should Be Fun

Posted by kilfour on September 24, 2009

Call me a nerd, but reading this made me laugh out loud (in a good way) :

public interface IHeisenView
{
    void ShowView();
    void HideView();
}

Posted in Hey Man Now You're Really Living | Leave a Comment »

Hey Man, Now You’re Really Living, Part II

Posted by kilfour on September 13, 2009

For those amongst you, who like their music slightly less polished than P12 sanding paper, live near Antwerp, and have nothing particularely interesting planned for the evening : I-H8 Camera will perform at Salle Jeanne Simons, Turnhoutsebaan 5, 2100 Deurne. Details are sketchy as choatic e-mails about P.A.’s, mic’s and kitchen-sink’s have been passing me by. The kitchen sink, I found dissapointing, isn’t going to be able to make it, as it’s musician seems to have recording engagements somewhere else.
Possible lineup :
Craig Ward, Heyme Langbroek, Younes, Boots, Elko Blijweert, Teuk Henri, Bert Lenaerts, me, Jeroen Stevens, Eric Thielemans, Rudy Trouvé.
Not sure about the last three and I can’t put a face to this Younes guy.
It seems Sleeping Dog will also perform.

Posted in Hey Man Now You're Really Living, Music | 1 Comment »

Hey Man, Now You’re Really Living, Part I.

Posted by kilfour on September 12, 2009

using( GetRepository<Product>().Save( product ) ) { }

Posted in Hey Man Now You're Really Living | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.