browse.develop.com
Browse.develop.com is a community that was established to collect and organize valuable web information. Our technical staff have selected and indexed information and courses that they feel will help you stay current on best practices across the SDLC.

56 Articles match "Unit Testing"

  • Related DevelopMentor Courses

    56 Results found
    Showing page 1 of 3   Next >

  • Test-Driven Cameras
    wish people had this same reaction to the idea of writing code without first writing tests (TDD). Tests give you the chance: To see what you are going to write, BEFORE you write it. If you haven’t already, here’s a great place to start learning to Test-Driven Development ? If you are already writing tests, here’s a free library to make test even easier to write? Unit Testing TDDI am getting old. The other day I was hanging around with my friend, Ike Ellis. He told me a story about his kids. The first question they asked was “Where is the picture?”
    Llewellyn Falco - Wednesday, September 7, 2011
  • Unit testing a ASP.NET WebAPI 2 controller
    'Earlier this year I wrote a blog post about how to unit test ASP.NET WebAPI controllers. It turned out that in order to do a good job of testing the public ApiController methods you would need to quite a bit of setup. One of the goals of the ASP.NET WebAPI 2 was to make testing of controllers easier. So how does this change the unit testing story? So how about testing them? Testing the Get() method. The Get() method as real easy to test before as we where just returning an IEnumerable. Testing the Get(id) method. 13: {.
    Maurice de Bejeir - Wednesday, November 13, 2013
  • Unit testing a ASP.NET WebAPI controller
    Testing a simple ApiController that gets data Suppose we have the following ASP.NET WebAPI Controller with two Get methods, the first returns the complete list of books and the second returns the book with the requested ID. Testing the Get() method. The Get() method that returns all books is easy enough to test. Testing the Get(id) method. Testing for getting with an invalid ID is equally simple: 1: [TestMethod]. Testing an HTTP PUT operation. Testing an update using an HTTP put is just as simple as a testing a get action. 8: 9: }. 11: {.
    Maurice de Bejeir - Sunday, May 12, 2013
  • Unit testing the AngularJS code in the RAW Stack
    However we didn't actually start writing any tests yet so lets create a few tests. The AngularJS controller under test Just as a quick reminder the AngularJS controller in our previous code was as follows 1: ( function () {. What do we want to test. The first thing we need to think about what to test. There isn't really a lot of application logic here so there is not much to test on that front. With JavaScript there is no compiler to validate this so it makes sense to create small unit tests that check our public interface. Try it.
    Maurice de Bejeir - Saturday, February 22, 2014
  • Unit testing AngularJS HTTP requests in the RAW Stack
    'In the previous blog post we created some basic unit tests for the AngularJS movies controller. As I mentioned there was one set of tests missing and that was around the controller doing HTTP requests to the WebAPI backend. In a unit test typically don't want to do those test for real. Fortunately AngularJS makes it easy to fake those requests and test the controller bits in isolation. which contains a number of things for our tests. Testing the HTTP requests The unit tests are quite simple. 13: $scope: scope.
    Maurice de Bejeir - Friday, February 28, 2014
  • Unit testing code depending on the ASP.NET #WebApi HttpClient
    'In a previous post I showed how to unit test an ASP.NET WebAPI Controller. Assuming for a moment the client part is also written in C# we should test that as well. Testing the BooksClient class. If we want to test this class we need to pass in an HttpClient object. This might not sound like a big deal but as this class doesn’t implement an interface we can’t use most of the standard mocking frameworks like Moq to replace the HttpClient with a test fake. Testing the GetBooks() function. test is pretty simple. Testing am HTTP POST action.
    Maurice de Bejeir - Monday, May 20, 2013
  • Lynn Langit: Better Unit Testing with Approval Tests
    Here’s my updated deck for SDC 2013, Sweden ‘Better Unit Testing with Approval Tests’ If you want to learn more, check out Llewellyn’s YouTube channel on Using Approval Tests in.NET.
    DevelopMentor Courses - Sunday, February 24, 2013
  • Complete Unit Testing
    vBlogged my thoughts here: I'm using the LegacyApprovals package (which I wrote, download below) here to test every combination of the possible parameters. It's design to test a lot of cases, but not every case. Links: Approval Tests (Legacy Approvals is part of the standard ApprovalTest download.) Today I had a conversation with @WoodZuill where an extremely rare situation came up. situation where you can practice TDD with Completeness of the possible user scenarios. It's worth pointing out this is NOT what the LegacyApprovals package was actually made for.
    Llewellyn Falco's Approval Tests - Tuesday, December 7, 2010
  • Unit testing the WebAPI controller and RavenDB database in the RAW stack
    'In the previous post we added unit tests for the AngularJS code running on the client. And while these tests are important there is more to test. In this post we are going to add unit tests for those two. And the dependency is then based around interfaces so a dependency can be faked during testing. And because we are already using the EmbeddableDocumentStore that loads its connection info from the application configuration file all we need to do is specify the appropriate connection string for our unit tests. 8: [TestClass].
    Maurice de Bejeir - Monday, March 3, 2014
  • Index of posts on the RAW stack
    'Introducing the RAW stack Creating a basic skeleton with the RAW stack Refactoring the AngularJS code in the RawStack Unit testing the AngularJS code in the RAW Stack Unit testing AngularJS HTTP requests in the RAW Stack Unit testing the WebAPI controller and RavenDB database in the RAW stack Using dependency injection with WebAPI in the RAW stack Paging data using AngularJS and RavenDB in the RAW Stack Using Bootstrap with the RAW stack The RAW stack and filtering movies by genre. RawStack
    Maurice de Bejeir - Sunday, March 23, 2014
  • Testing Difficult Code
    I recently did 3 videos in my ‘ Using ApprovalTests in.Net’ series that deal with how to test difficult code. These video actually have very little to do with either.Net or ApprovalTests, but they are common issues you run into when unit testing. Seams Testing difficult Code comes down to 2 things: Can I call the Method? The Peel The hardest part about long methods is you have to run all of it to test even a small part of it. The Slice (Mocks) Even if you get into the piece you are looking to test, you might not be able to get all the way through it.
    Llewellyn Falco's Approval Tests - Wednesday, March 21, 2012
  • Manual testing sinful?
    'One of the asides I made in “ Programmers without TDD will be unemployable ” which caused a bit of outrage in the testing community was my comment “Manual testing is a sin.” Look at the full line the quote appeared in: “Unit testing will be overwhelmingly automated. Manual testing is a sin. Manual unit testing doubly so.” In the context of Unit Testing, as one who has undertaken formal and informal manual unit testing I believe unit testing can and should be fully automated. I will also go further.
    Allan Kelly's Blog - Sunday, February 16, 2014
  • Lynn Langit: ApprovalTests at Agile 2012
    Woody Zuill and I are presenting on the open source unit testing library ApprovalTests at the Agile 2012 conference this week. Below are the slides. The presentation will also be recorded and I will link that recording here after it’s … Continue reading →
    DevelopMentor Courses - Tuesday, August 14, 2012
  • Devweek 2013
    What’s new in Unit Testing in VS 2012 (remember that Fakes is only in VS Ultimate SKU Thanks to everyone who attended my sessions at Devweek 2013 – I had a lot of fun delivering them. It was also great to catch up with old friends and make a few new ones. As promised I have uploaded all of my slides and demos to the cloud and they can be downloaded here. WCF Preconference Workshop. Reactive Framework. Living with the GC. Workflow 4.5. WCF 4.5 remember you’ll need to be running Windows 8 for the WebSockets demos).
    .NET Meanderings - Saturday, March 9, 2013
  • Programmers without TDD will be unemployable by 2022 (a prediction)
    By TDD I mean Test Driven Development - also called Test First (or Design Driven) Development. The characteristics I am concerned with are: Developer written automated unit test, e.g. if you write Java code you write unit tests in Java. or Ruby, or some other computer language The automated unit tests are executed routinely, at least every day This probably means refactoring, although as I’ve heard Jason Gorman point out: interest in refactoring training is far less than that in TDD training. Unit testing will be overwhelmingly automated.
    Allan Kelly's Blog - Tuesday, January 7, 2014
  • Refactoring the AngularJS code in the RawStack
    13: window.location = window.location; 14: }); 15: }; 16: }); 17: }()); All in all the code isn't much harder and at least it is in a separate file so we can start unit testing it as well. This not only makes the controller harder to unit test but is also breaking the single responsibility rule. But we will fix that bit in a future post after I have shown how to unit test the controller as it is now. In the next post I will cover getting started to testing the client side JavaScript code. It still will not be perfect but better. Try it.
    Maurice de Bejeir - Monday, February 17, 2014
  • Guerrilla.NET (UK) Training
    Create robust code using unit testing frameworks and mocking Simplify your service deployment with zero config services with WCF 4.0. Write modern web applications that are simpler to unit test with ASP.NET MVC. Unit Testing Using unit testing comprehensively within software development is a growing movement. Unity testing allows refactoring and maintenance with the confidence that existing functionality is not broken. Leverage new features of C# 4.0, including named and optional parameters and dynamic typing. couldn't? Since.NET 1.0,
    DevelopMentor Courses - Tuesday, March 1, 2011
  • Maurice de Beijer: Integrating the #WebAPI HttpClient and ApiController in a single test
    'In the two previous blog posts I showed how to unit test and ASP.NET WebAPI controller and how to unit test the client side code depending on the HttpClient class. Both unit tests are perfectly valid but as so often just adding unit tests can be deceptive. After all testing an ApiController by just calling the methods makes it perfectly possible to call them in such a way that would never be possible using a real HTTP request. When testing the client code in the previous blog post we already used this fact. 1: [TestMethod].
    Maurice de Bejeir - Monday, May 27, 2013
  • DotNed Podcast: Peter Provost over unit testen
    In deze podcast spreekt Hassan Fadili met Peter Provost over unit testen. Links: Blog: [link] Tech-Ed sessies: [link] Team Test Blog: [link] What's new for MSTest Unit Tests in Visual Studio 11 Beta: [link] Application Lifecycle Management resource center | SharePoint 2010 [link] Test Release Management Guidance: [link] Rangers Solutions by Version [link] Compare Visual Studio 2012 editions [link] Hassan's Blog voor alle relevante VS ALM informatie: [link] Met dank aan onze sponsor RedGate. Enjoy! TechEd Podcast DotNed SharePoint UnitTesting
    Maurice de Bejeir - Thursday, July 19, 2012
  • Guerrilla.NET (US) Training
    DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. DI/IoC : Use powerful OO design patterns and techniques to build loosely-coupled, testable, and maintainable applications including Dependency Injection (DI), Inversion of Control (IoC), and unit testing. C# : Leverage new features of C# including asynchronous methods from C# 5.0, dynamic typing from C# 4.0, and LINQ and lambda expressions from C# 3.0. and jQuery.
    DevelopMentor Courses - Tuesday, March 1, 2011
<< 1 2 3 >>
%>