Posts

Showing posts from February, 2021

Debugging and Testing Helm Charts Using VS Code

Image
Introduction Helm charts are useful to manage, install and upgrade Kubernetes applications. Helm is a developer friendly templating Kubernetes resource files based on GO templates and YAML. The templates are written using any notepads and deployed using Helm. Writing helm commands on notepad is not user friendly. Using Visual studio code we can setup a workaround that will enable to code faster and see the generated Kubernetes YAML files.  The following document has the details of necessary steps and guide that will help you to debug and test your helm charts before directly installing in the Kubernetes cluster using Visual Studio Code. Download and configure Helm in windows Download the Helm.exe for windows from the link  https://github.com/helm/helm/releases  or  https://get.helm.sh/helm-v3.5.0-windows-amd64.zip . Unzip and copy the contents to some directory like 'C:\Users\<username>\Tools\Helm'. Configure the above directory URL to environment var...

Unit testing .Net Framework/.Net Core using xUnit

Image
Introduction xUnit.net  is a free, open source, community-focused unit testing tool for the .NET Framework.  xUnit.net  is the latest technology for unit testing C#, F#, VB.NET and other .NET languages.  xUnit.net  works with ReSharper, CodeRush, TestDriven.NET and Xamarin. If you’re developing a .NET-based application, Microsoft provides MSTest framework that has excellent integration with Visual Studio. When it’s time to execute these unit tests on a build engine, the MSTest execution engine requires an installation of Visual Studio to be available on the build server. You can choose any build server, but Visual Studio must be installed on it. You won’t always have complete access to the build server to install the tools that you need. Here, xUnit comes handy! Advantages of xUnit over MSTest The xUnit tool has gained popularity over MSTest for following reasons: It provides support for parameterized tests using the  Theory  attribute whereas MS...