Create a Unit Test Project

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 for Existing Code is better. For ease of use, we recommend that you organize your solution/projects as described in Organizing Your Projects when using this process.
  1. 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.

  2. If you are prompted, choose General development environment. In this setup Visual Studio is customized for work with COBOL projects.
  3. Click File > New > Project.
  4. In the New Project dialog box, expand Installed > COBOL > Native.
  5. Select the Unit Test Library template.
  6. In the Name field, specify a name for the project.
  7. In the Location field, browse to the directory in which to store the project.
  8. Click OK.
You now need to add a test program to the project to start creating test cases.