This is a migrated thread and some comments may be shown as answers.

Record feature for setting up tests - "JustMock This"

2 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 12 Jul 2010, 09:34 AM
A feature I would really like to see to assist with using JustMock is a way of setting up unit tests far more easily.

In my situation I am dealing with calls from a silverlight client that are passing collections of objects created originally by linq to sql. All the examples show using JustMock for testing of very simple methods - currency conversion etc. While I realise there is no limit to the complexity of what can be setup, it is very difficult to set these types of parameters up by hand.

What I would really like is a way to hit a breakpoint in my code, and then be able to select "JustMock This" off a menu somehow.

This would clone the current arguments into a repeatable test.  I wouldnt care if the clone was done in code, or the arguments were persisted in some way. I just dont want to have to recreate them all by hand.

It would open the door not just to simplified set up of unit tests, it would also be a powerful debugging tool as well, as sometimes the operations to get to a bug can be complex, and it is a real pain to keep going through the motions just to get back to the same method again.

If there is a way of doing all this with the existing product, please let me know how. If not, what do you think of this as a feature?

Tom

2 Answers, 1 is accepted

Sort by
0
Chris
Telerik team
answered on 12 Jul 2010, 02:04 PM
Hi Tom,
I love this suggestion! It looks like a great candidate for a JustCode feature and we'll definitely include it in our plans for the Q3 release. I've create an item in our Public Issue Tracking System and you can follow its progress here:
http://www.telerik.com/support/pits.aspx#/public/justcode/2650

I've also awarded you with some Telerik points for this suggestion.

Sincerely yours,
Chris
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tom
Top achievements
Rank 1
answered on 13 Jul 2010, 12:33 AM
Thanks Chris, glad you like it. Look forward to Q3 release.
Tags
General Discussions
Asked by
Tom
Top achievements
Rank 1
Answers by
Chris
Telerik team
Tom
Top achievements
Rank 1
Share this question
or