On this article, we want to show you how to implement test driven development in Go Language with VS Codes.
What is Test Driven Development
Test Driven Development (TDD) is a programming technique when you do test first development. It is introduced in the era eXtreme Programming with their Agile process. The idea of test driven is like this
Create the empty function with input and output.
Create the unit test regarding the function
Make it fail (yes, it shall fail since it's empty function)
Correct the function
Make it pass
It provides you an extra step, but it will make your code quality better
Before we start
Before we start you should install
Visual Studio Codes
Go Languages SDK
Go extension in VS Codes
You can visit the tutorial here.
medianet_width = "600";
medianet_height = "250";
medianet_crid = "858385152";
medianet_versionId = "3111299";
Demonstration
On this video demonstration, I will show you how to:
Create a skeleton function
Invoke the Test Generator to generate the test function
Creating test case
Invoke the unit test
Fix the codes
Rerun the test till pass
medianet_width = "600";
medianet_height = "250";
medianet_crid = "858385152";
medianet_versionId = "3111299";
Four years ago, I created a tutorial about how to use GIT in Visual Studio Codes. Time pass by, Visual Studio Codes provides better integration with GIT in their current version. In this article, we will show you how to use GIT easily in the Visual Studio Codes
Before we go
Before we dive into the integration between Visual Studio Codes and GIT. You need to have:
Current version of visual studio codes. Download here
Current version of Git. Download here
Account on SCM provides such as Azure DevOps Account, GitHub Account, Bitbucket, etc.
Step by Step
medianet_width = "600";
medianet_height = "250";
medianet_crid = "858385152";
medianet_versionId = "3111299";
Creating a project in SCM providers
Obtaining the clone repository URL
Installing SCM provider extension
Configuring authentication in Visual Studio Codes
Working and Testing GIT operation
You can see the Indonesian video here.
// video
References
First time about GIT? You can download this book, to get started.
Need more information about integration in Visual Studio Codes, you can read the document here
medianet_width = "600";
medianet_height = "250";
medianet_crid = "858385152";
medianet_versionId = "3111299";
Visual Studio Codes supports a lot of programming languages. Starting from C# to JavaScript, Visual Studio Codes can be everyone. Comparing with full feature IDE like NetBeans, Visual Studio 2019, or Eclipse. Visual Studio Codes provides an effort to 'near' full featured IDE. On this article, we will show you how to configure GO language in your Visual Studio Codes. Go is an open source programming language that makes it easy to build simple, reliable, and efficient software (https://golang.org/). It can be compared with Blazor, or Razor syntax. By following this article, you can code the Go language, debugging, and testing.
Preparing the stuff.
We need to prepare some of the software requirements. Here is the list.
Download the latest Version of Visual Studio Codes here
Download the GO language here
Download the Go language extension here for Visual Studio Codes. It will help you test the Go codes.
Download the Delve for debugging purpose here.
After you download all the stuff, we are ready to go.
medianet_width = "600";
medianet_height = "250";
medianet_crid = "858385152";
medianet_versionId = "3111299";
Demonstration Video
In this video, we will show you how to
Installing Go in Windows Machine
Installing Go extension language
Coding in Visual Studio Codes with Go
Have a question about Go language in Visual Studio Codes, you can join VSID YouTube Channel. You can find useful link below.
medianet_width = "600";
medianet_height = "250";
medianet_crid = "858385152";
medianet_versionId = "3111299";