Thursday, June 18, 2009

Better handljng of UAC

Something I came across today when setting up Typemock on Win7. I forgot that I needed to run as administrator for the configuration to be able to edit the registry.

If you're not running VS as an admin (or the configuration tool) it brings up a nasty dialog which looks like something really bad has happened.

If you read the message it does indicate what was wrong (well, it implies it) but it also says you should contact Typemock about the error. It's be nicer if it had a more useful message, stating that you can't edit the registry and that you should ensure the application is running in Administrator mode.

Wednesday, June 17, 2009

Intellifake – Technical Preview

So what you see in the movies is real! Here’s an Isolator installer (v5.3.2). This is a technical preview, not a final version of 5.3.2. You can download a 32bit installer and a 64bit installer.

What we have here is the regular Isolator you know and love, with a DXCore add-in that when opening a parenthesis of a method allows you to create an Isolate.Fake.Instance for that argument. Very cool, at least we think so – tell us what you think!

image

If you don’t have it already, download the latest DXCore here.

What it does:

  • Display a tooltip/keyboard shortcut when in a method/constructor argument list
  • Only does this within a Test method (with the correct attribute)
  • Suggest faking statements on non-value, non-mscorlib types
  • Inject faking statements, using statements, [Isolated] attribute and assembly references
  • This is currently disabled in VB.NET
  • Requires DxCore to be preinstalled

Known issues:

  • If you open a parenthesis and the tool tip doesn’t show try deleting the DXCore cache files:

    <%AppData%>\CodeRush for VS .NET\1.1\AssemblyCache
    <%AppData%>\CodeRush for VS .NET\1.1\SolutionCache

  • if your short cut (alt-/) doesn’t work you can take these steps to remedy that:

In order to set the shortcut:

In Visual Studio –

1. DevExpress -> Options

2. Choose IDE from the tree on left

3. Select Shortcuts

4. In the dialog on the main window right click “Code” and add “New Folder” and name it Typemock

5. Right click Typemock and click “New Keyboard Shortcut”

6. On the right side set Command name as “ShowIntellifakeSuggestions”

7. Set Keys in “Key 1” box

Tuesday, June 16, 2009

Typemock Racer official launch – free license for bloggers offer

Hey All,

As you all know we have launched a new product – Typemock Racer .

For the launch we are offering a free Racer license for bloggers.

We will appreciate it if you let your blog readers or friends know of this offer, either by posting the below text, or by telling them in your own words.


** Typemock have launched a new Unit testing tool for easy deadlock detection, Typemock Racer, and for the launch they are offering a free license for bloggers who will review it.

Get the full details on Typemock’s blog. **



Thanks

Moran

Hierarchical approach in unit testing

Hi, fellow sandboxers.

This is sort of a philosophical question, but I really wonder if you guys can suggest anything.

We're going to re-shape unit tests in our company and came up with the following plan. Just to explain the train of thought: imagine you need to test that a user can access a file he had previously uploaded.

Such scenario implies the system can
* establish a user account
* login a user
* upload a file for a user
* and, finally, read a file for a user

Eventually, all use cases form a hierarchy. On the top we have fundamental things: creating a new account, login, etc. Next go "less fundamental" things that rely on the previous ones, and so on.

If we build tests based on this hierarchy, we can reuse our "Write" routines in tests for the "Read" ones.

Again, we would not use mocks to isolate Reads from Writes - instead, we'll be testing Writes before and use them to fill in the data for Reads. (There will be some mocking, to restrict the Writes, but we'd be saving to the database anyway, and we'd use transactions to rollback after each test).

Immediate benefits:
  • Writes could be easily refactored without affecting unit tests.
  • We can get rid of duplicating "Write" business logic in "Read" tests - we'd just reuse our real business logic.
So, what can you say about the approach?

Thanks!

Thursday, June 11, 2009

Is Unit Testing The Answer? Express your opinion on Typemocks blog

Hey Guys,

As some of you may have heard a few EU commissioners are proposing that software companies be held liable for the quality of their products.

We are raising this issue in the upcoming Typemock - Unit Testing and Beer - event at NDC's geek beer next Wednesday (17-June-2009 ). If you're nearby jump and say hi to Roy and Avi.

We have uploaded 2 polls about this issue in our blog http://blog.typemock.com/ .
Feel free to express your opinion. We'd like to get as many participants as we can, so please point everyone you know who's interested to voice their opinion there.

Thanks and we hope to see you (or at least some of you) at NDC.

Friday, June 5, 2009

Unit test examples

Hi fellow Isolator friends,

Probably every one gets questions from time-to-time on how you should do unit testing. Of course you can present the normal examples (testing Add, Subtract, etc).

My question is, do you have any cool real world examples I could use for a presentation, or some ideas for real world examples?

Thanks a bunch in advance!

Thursday, June 4, 2009

We screwed up and we apologize

The 5.3.1 version we uploaded here was not different functionally than the one we published yesterday, but enough to cause problems, as Travis wrote in the comments here. We are about saving development time, and we didn't do it this time.

We're taking measures that it will not happen again. Part of the work is more automation on the build part, the rest is more about our release process. We will get you releases earlier, and we will make sure they are the ones that we release later.