Subscribe in a reader

 

Archive for tag: Ivonna

Testing async requests, mocking async methods with new Ivonna

For those of you who can't wait to start testing async requests, here's the good news (and no, there are no bad news in this post): starting with the 3.1 version of Ivonna, you can test them with the same syntax as before, i.e. using either session.Get(url) or session.GetPage(url).

However, this is not the end of the story. Most of the time you use the async pattern for a reason. You have a lengthy operation in your Web code...Read more..

Custom Asp.Net Model Binders series, part 1: Now How

Recently I started a challenge on LinkedIn: let's write blog posts about custom model binders, view results, and other extensible stuff in Asp.Net MVC; let's do it one post a day for a week and see what happens. Presumably, it should benefit everybody, especially Asp.Net MVC newcomers.

Well, I'm two days late already, and I don't feel like doing a big post today, so today's a really simple...Read more..

Creating a custom Visual Studio project template for Ivonna

Yesterday I spent the whole day improving the project template for Ivonna, so I thought I might make this world a better place by sharing the details (and some code, too). The main idea is that, in order to make the template smarter than just being able to do some search/replace for you, you should go down the path of Visual Studio extensibility (and return alive). Other than that, you have to put your code in an assembly and throw it into the GAC,  then reference it in the vstemp...Read more..

More secret plans revealed

I've received some shocking news from one of our brave spies in Ivonna Labs.

Yes I know it's a lame joke. But I'll pretend my backspace key is broken, and leave it here.

Anyway, now that you're entertained a little, I'm providing some boring info. The MVC bits in the new Ivonna version will come as a separate assembly.

Actually, three of them. The reason is sim...Read more..

Breaking changes in Ivonna v.3

I've just pushed the 2.1.8 release ready for download.

What a great day!

I hope you're having a good day too, and I don't want you to get any nasty surprises for this release. So, with (fake) regret I must tell you that this release has, as predicted, a couple of breaking changes:

Getting ready for breaking changes in Ivonna v.3

Ivonna was conceived during the dark times, when the WebForms framework ruled the Asp.Net development. Sure there was MonoRail, but only a few alpha geeks actually used it. For 99% developers, Asp.Net was equal to WebForms.

Ivonna also suffered from me not seeing a clear distinction between the framework and the runtime. As a result, its core classes have been tightly coupled to WebForms specific ones, and compatibility with all other f...Read more..

Testing MVC with Ivonna -- first look

Recently I've been adding some bits to Ivonna that are supposed to make her more MVC-friendly. I fell asleep with a happy smile om my face after the following test passed:

var session = new TestSession();
Read more..

Setting up Ivonna with MsTest

MsTest is different from other test frameworks in that it considers itself smart enough to put your test assemblies in a folder where Ivonna (not so smart, definitely) cannot find them. Fortunately, we can disable this behavior. Here's how:

VS 2010

  1. If you don't have a .testrunconfig file in your solution, create it. Right-click the solution file in the Solution Explorer, choose "Add New Item..", choose Test Settings in the Test Settigns folder. If you already have...Read more..

58 things you always wanted to test in Asp.Net MVC, but were afraid to

When they sell you improved testability in Asp.Net MVC, they usually cite the foundational ScottGu's post and write a cute unit test for a controller. With all these beautifully hand-crafted mock authentication services and built-in Http***Wrappers.

Wow!

While it's certainly a big step in the right direction, compared to WebForms' codebehind, let's face the truth: it's far from ideal. While testing Binders and Action filters is doable, it requires ridiculou...Read more..

Look who's got a new home!

Dearest audience!

I'm Artem Smirnov, and this is my beloved child product, Ivonna. She can do only one thing, but she can do it like no other. Testing Asp.Net sites. Until recently, she had a room at my own virtual home, http://sm-art.biz, but I decided she deserves her own home.

I won't pitch you here, you can visit the learn pages for more information. I just want to welcome ...Read more..

Archives

Latest news

Latest blog posts

Powered by FeedBurner