Use this process if you are writing the application logic from scratch, or are importing it from elsewhere. If the application
logic that you plan to test already exists, you may find that the process explained in
Create a Unit Test Project and Test Program is better. For ease of use, we recommend that you organize your solution/projects as described in
Organizing Your Projects when using this process.
-
Start
Visual COBOL. If you need instructions, see
To start
Visual COBOL.
Note: On Windows 8, Windows 10, and Windows Server 2012, you use the Start screen to invoke programs.
When starting Visual Studio for the first time, you might be prompted to set the environment, depending on the Visual Studio
version which is installed.
-
If you are prompted, choose
General development environment. In this setup Visual Studio is customized for work with COBOL projects.
-
Click
.
-
In the New Project dialog, expand
.
-
Select the
Unit Test Library template.
-
In the
Name field, specify a name for the project.
-
In the
Location field, browse to the directory in which to store the project.
-
Click
OK.
You now need to add a test program to the project to start creating unit tests.