Telerik blogs

Latest

  • Productivity Testing

    30 Days of TDD – Day 27 – Reader Question #3

    Adam Hall asks Just a quick question regarding TDD, encapsulation and DateTime.Now() I’ve often seen suggestions that you should control the behavior of DateTime.Now so that you can reliably test the way classes react to date times. Controlling DateTime is a solution, but it smells of violating encapsulation, you are affecting objects from outside of their boundaries (and indeed system wide) In your experience what is the best way to deal with Dates in TDD?
    December 06, 2013 3 min read
  • Productivity Testing

    Using QUnit To Unit Test PhoneGap/Cordova Applications

    As the state of hybrid web development matures, developers are looking to bring their tools and techniques from more "traditional" development to this new medium. One of these techniques, unit testing, can be a bit tricky to setup in PhoneGap/Cordova applications. In this article, we'll look at how to build a test suite for a hybrid app with QUnit - a popular and easy to use unit testing library. We'll look at not only how to build and run tests, but also how to automate them as well.
    December 06, 2013 7 min read
  • Productivity

    Prioritizing Development Work using Application Analytics

    Application analytics can help you make informed decisions while prioritizing development work. This article reviews a couple scenarios that demonstrate the usefulness of including analytics in your applications.
    December 04, 2013 3 min read
  • Productivity Testing

    30 Days of TDD – Day 26 – Reader Question #2

    In this post Emad Mokhtar asks: I want to know how to test my business logic which is basically related to database, I know dealing with database is integration test not unit test but this is what I want to take care of, weather my Employee entity inserted or not, did my validation work or not, what if I insert Employee and failed when in inserting his/her addresses, and can I connected to database.
    December 04, 2013 2 min read
  • Productivity Testing

    Mocking Services & Data in Mobile Apps

    On larger projects, where different team members work on features that are dependent on other team members' contributions, the ability to work as if the feature already exists, when in fact those developers haven't completed it, can keep overall progress chugging along. When it comes to web and mobile apps, one of the classic "divides" occurs between client and server. You might have developers focusing solely on the front end or mobile app, with others focusing on server-side concerns, like web services. Have you ever been on a team where the client-focused developers had to wait for server-side devs to complete work on HTTP services before they could continue on? This does not have to be the case. Mocking HTTP services itself isn't difficult – and depending on your client side architectural choices, you can also mock your data using your models/view models. We take a quick look at two of these options in this post.
    December 04, 2013 9 min read