Skip to main content

Demo - How to use the TestCover compiler directive

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

This sample demonstrates how to use the TestCover compiler directive and support tools.

Resolution:

BUILD W/RELEASE:     Net Express v4.0 with December 2003 Websync.

This demo uses the Net Express DEMO\\LOCKING demo to demonstrate the  TestCover utility. For instructions on how to use/run LOCKING demo please the the README  file in your Net Express\\BASE\\DEMO\\LOCKING folder.

SOURCE FILES:

=========

Resource Files:

Description

----------------                   -----------------------------------------------------------

.\\TCF\\LOCKING.TCF        Test Coverage configuration file

RunTC.bat                       BAT command file that will generate the Test Coverage reports

OPERATION:

========

To use this sample, rebuild the project and run the application.  

Pull down the Project menu and select Properties. Note that the TESTCOVER  compiler directive has been added to the Project Directives.

Also, click the IDE button to see the TESTCOVER environment variable setting  value: .\\TCF\\locking.tcf.

After the execution of the application is completed, you will find the generated Test Coverage, *.TCZ, and log file, *.LOG located in a directory called Results.  To generate the Test Coverage report start a Net Express command prompt and  then run the provid command file, RunTC.bat. The reports will be generated in a folder called REPORT, just double-click on the file called tcindex.htm.

REFERENCES

========

For more information about TestCover and TCReport goto the Net Express online help under Contents;

Using Net Express

Test Coverage

Overview - Test Coverage

TCReport

Test Coverage configuration file

Format of a report produced by TCReport

How to ...

Run Test Coverage

Run results with TCReport

Troubleshooting Test Coverage

Test Coverage Error Messages

==========================================================

Keywords: Example, sample, demo, demonstration, Utility, testcover.zip

demo.ex

demo.ne

Attachments:

TestCover.zip

Old KB# 4368