Showing posts with label TDD. Show all posts
Showing posts with label TDD. Show all posts

Friday, 22 October 2010

Tuesday, 16 June 2009

Intro to Pex and TDD

I need to work on the presentation for the dev team at work and have the samples and presentation from the Pex site but am not sure which code samples to use or to mix in some work code?

Do I include Contacts and Stubs as well or would that be to much for a 2 hour session?

Friday, 5 June 2009

Pex Explorations

So after last night I decided to break out a couple of methods for testing from the main project.



and running Pex generate unit tests gave me the following



and added










Thursday, 4 June 2009

Pex

Didn’t get as much done as I would have liked. Though one thought did cross my mind why do VS templates not conform to things like StyleCop  and R#

Must admit though I like Pex as it helps create tests I think I might need to pick a fresh project to add it to.

Do take the time to read through the documentation and the slide decks are good for teams.

Friday, 29 May 2009

Pex 0.13 Released

Pex 0.13 Released with this release and some new project work I’m going to try and use Pex to create tests. Should be interesting as I’ve got to test webservices and serialization for messaging.

Monday, 9 February 2009

Entity Framework Tests

Just a quick one – guess I was being an idiot (no change there then). I was creating a couple of tests for my entity model and got an error

"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid."

A little bit of searching revealed that I needed an app.config for the test project with the connection settings for the model – makes sense but was confusing at first.

Wednesday, 15 October 2008

Pex Automated Testing

Pex is a tool being developed by Microsoft Research which has the potential to dramatically improve the quality of software testing while requiring minimal, if any, effort on the part of the developer. Pex can automatically generate a set of inputs for a paramaterized unit test which can effectively exercise most, if not all, possible code paths.“

http://channel9.msdn.com/posts/briankel/Pex-Automated-Exploratory-Testing-for-NET/

There is a talk at the DDD7 at Reading on the 22nd November that include Pex, presentation by Ben Hall, along with ‘TDD and Hard to Test code’, IoC, MVC and lots more.

Friday, 26 September 2008

TDD and Style Cop

In this ever changing world the powers that be, that is to say me and my line manager have decided that it is time to introduce some stability/readability into the code that we and rest of the team produce.

To that end over the next few weeks we’ll be pushing for the use of tools, like StyleCop, to get consistency. Before the end of the year the introduction of TDD. TDD will be the more difficult as we’ll have to factor in the initial hit in code production.