Updates from April, 2010 Toggle Comment Threads | Keyboard Shortcuts

  • danielsaidi 11:43 pm on April 26, 2010 Permalink | Reply
    Tags: ,   

    SimpleTest – Test Driven Development in PHP 

    In my daily work, working with .NET/C#, I love the way TDD and NUnit simplifies my work and allows me to focus on implementation instead of worrying about whether or not my new code will break anything already existing.

    When I develop PHP applications at home, however, I have not previously had any natural way of testing my code, since I have not had any good tool for testing my PHP code…and have not really put any effort into finding any such tool either.

    Today, however, this has changed. After starting developing Wigbi 1.0.0, I decided to browse the web and instantly found my dream tool – SimpleTest (can be downloaded at http://simpletest.org).

    It took me less than 5 minutes to download SimpleTest and use it to run my first test. It is simple (duh) and plain fantastic. If you are not into TDD, I strongly advice you to try it out…test is bliss.

  • danielsaidi 1:38 pm on April 14, 2010 Permalink | Reply
    Tags: , , visual nunit,   

    Visual NUnit 2010 

    At work, I have a license for ReSharper, which is a really nice piece of software. Besides providing a lot of handy shortcuts and extensions to the Visual Studio environment, it also integrates NUnit in a very convenient way.

    At home, however, I have no ReSharper license and really see no point in installing it. One thing I really miss, though, is the NUnit integration. Sure, I can add NUnit as an external tool, but it’s not really smooth to work with (in my opinion).

    Today, I found the Visual NUnit 2010 extension for Visual Studio, which provides a nice NUnit view that is embedded within Visual Studio.

    Visual NUnit 2010 can be downloaded here:

    After installing Visual NUnit, you will find the Visual NUnit view under the View/Other views menu alternative. If you do, you are good to go.

    To make things even smoother, I pinned the Visual NUnit view to the bottom of Visual Stuio, which makes it instantly available as soon as I want to run my tests.

    • PärH 11:29 am on August 26, 2010 Permalink | Reply

      Nja, kan inte rekommendera Visual NUnit 2010 av två orsaker:
      – app.config läses inte in (Tracker item finns på sourceforge)
      – man måste själv komma ihåg att bygga innan man startar testerna

      ReSharper löser dessa två

      • danielsaidi 11:34 am on August 26, 2010 Permalink | Reply

        Visst är ReSharper bättre och smidigare och heeelt fantastiskt (produktplacering), men det kostar ju en del. Även om RS, CodeRush eller dylika plugins starkt är att rekommendera, är det ju trevligt med ett gratisalternativ, som jag ändå måste säga fungerar bra för egen del när jag pillar med mindre projekt.

    • Dave M. 12:56 am on December 14, 2010 Permalink | Reply

      I generally like Visual NUnit, except for the cases where it doesn’t work. One some of my projects, it works great. On other similar projects, I don’t get anything in the “Namespace” and “Fixture” droplists, so I can’t run my tests. It’s a bit frustrating. Have you ever encountered this problem and figured out how to resolve it?

      • danielsaidi 9:25 am on December 27, 2010 Permalink | Reply

        I have not been using Visual NUnit much after I wrote the blog post, since I shortly after returned to work and my ReSharper license…and with ReSharper, there is (if you ask me) no need to install Visual NUnit. Sounds frustrating though!

      • Nick Stinger 3:48 am on August 5, 2013 Permalink | Reply

        Seems you have to build the test project before the droplists will populate. That was my problem, at least, but it makes sense.

    • Alexander 12:47 pm on May 3, 2012 Permalink | Reply

      Tried that and think that MSTest is much better.
      (Just to name – it sorts run time column as strings)

    • Anurag 2:52 pm on November 18, 2012 Permalink | Reply

      Helped alot…thanks a ton 🙂

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc