Referencing MSTest And MSTestv2 Unit Testing Framework Through Namespace Aliasing

Let me start-off by explaining what MSTest and MSTestV2 are. MSTest (Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll) – This is the unit testing framework that comes pre-installed when you install Visual Studio IDE (Available through the .Net Framework – GAC) MStestV2 (Microsoft.VisualStudio.TestPlatform.TestFramework.dll) – This is now the open source version of MSTest. With any open source libraries, there are lots … Continue reading “Referencing MSTest And MSTestv2 Unit Testing Framework Through Namespace Aliasing”

Validating and Unit Testing Web API (2) Route Attribute Parameters

Personally, I like to isolate business rules and/or validations outside of MVC Controllers. In this case, API Controllers. I use ActionFilterAttribute to define my checks on parameters being passed in my MVC Web API routes. Here’s an example of a WebAPI route with parameter binding: I want to isolate validating employeeid outside of my controller … Continue reading “Validating and Unit Testing Web API (2) Route Attribute Parameters”

Enabling Targeted Environment Testing during Continuous Delivery (Release Management) in VSTS

In my previous post “Continuous Delivery using VSO Release Manager with Selenium Automated Tests on Azure Web Apps (PaaS)”, I’ve walked through the steps on how to enable continuous delivery by releasing builds to multiple environments. One caveat that I didn’t focus on is taking the same tests and running it against those target environments. … Continue reading “Enabling Targeted Environment Testing during Continuous Delivery (Release Management) in VSTS”

Continuous Testing in VSO using Selenium WebDriver and VSO Test Agents (On-Premise)

This post walks you through on how to implement continuous testing using the following technologies: Using Config Transform to configure your tests to run multiple browsers during runtime Selenium WebDriver – Automation UX framework to drive UX Testing VSO Build – ALM (Application Lifecycle Management) tool suite for storing code (via GIT), creating the build … Continue reading “Continuous Testing in VSO using Selenium WebDriver and VSO Test Agents (On-Premise)”

Working With Stand Alone Entity Framework Core 2.0 in .Net Framework 4.6 (above) with SQL Server

When you work with EF Core, the initial project creation requires that you select a .Net Core project. This is all good if you’re entirely working with a .Net Core App. What about .Net Frameworks 4.6 and above? How about starting with a .Net Core app without EF Core?  There are multiple guides out there, … Continue reading “Working With Stand Alone Entity Framework Core 2.0 in .Net Framework 4.6 (above) with SQL Server”

Using NUNIT Test Framework do validate deployments in VSTS Release Management

As of writing of this post, I prefer NUnit when using .Net for developing application deployment tests. Why? Simply put, better support and test execution. More importantly, the ability to simply reference test runners without installing the actual test execution files (Like VSTest or MSTest). This guide will walk you through on developing simple tests … Continue reading “Using NUNIT Test Framework do validate deployments in VSTS Release Management”

Unit Tests (TDD) + Code Coverage = “Happy Couple”

We all rave and talk about TDD (Test Driven Development) all the time. Have you asked yourself these questions? · “Do my unit tests truly cover blocks (or lines) of code that I’ve implemented?” · “How do I ensure that specific features (implementation) is doing what it’s supposed to do?” · “Is there a possibility … Continue reading “Unit Tests (TDD) + Code Coverage = “Happy Couple””

Working with Entity Framework 6.0 ON IBM Informix V11.10+ in Visual Studio 2015

We know EF (Entify Framework) has many benefits working with Databases. Particularly from a development and performance stand-point. There are 2 versions of client connectivity SDK’s for working with Informix Databases: IBM.Data.Informix.dll— Also referred to as the Common IDS .NET Provider. This assembly has been specifically created to help existing applications that were developed using … Continue reading “Working with Entity Framework 6.0 ON IBM Informix V11.10+ in Visual Studio 2015”

Using XML Data Transform (XDT) to automatically configure app.config during Nuget Package Install

This should be fairly straight forward as mentioned on nuget.org’s site right? Well, not quite. I’ve spent some time reading through the blog posts and it’s not quite straightforward. Hopefully this post is the simplified version. In my case, the scenario is simply to add entries in the appSettings key node within the app.config file. … Continue reading “Using XML Data Transform (XDT) to automatically configure app.config during Nuget Package Install”

Custom Build Triggers in VSTS

In my previous posts, I’ve shown people how to use VSTS (formerly known as VSO) to trigger continuous testing using builds and release management. I was able to utilize new reporting capabilities in build, particularly, test reports. I created reports that shows pass/fail trends for tests in my build definitions. There are still limitations (or … Continue reading “Custom Build Triggers in VSTS”