Highlighted
Absent Member.
Absent Member.
1075 views

No results has happened when I use test coverage

Jump to solution

hello

I'm using visual cobol for eclipse.

Following the help book, I have set environment variable(both in win7 and eclipse) TESTCOVER=C:\default.tcf

default.tcf 

[TESTCOVER]

RESULT C:\tcresult.tcz ACCUMULATE

ECHOLOG NO

and have writen [$SET TESTCOVER] in my program's first line from 7th character

and then compile,run.

and no where I can found .tcz file

please point me the mistake or what i missed

thanks

newest:

When I use run command to launch my program,I was succeed to got a .tcz file.

but why it does not work in eclipse?

0 Likes
2 Solutions

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: No results has happened when I use test coverage

Jump to solution

FYI, Test Coverage is only supported for native code projects.

I believe the problem that you are seeing is because you are trying to write the results file directly into the root directory.

I would suggest that you create a subfolder like C:\testcover into which you place your default.tcf file and modify the RESULT option to:

RESULT C:\testcover\tcresult.tcz ACCUMULATE

I tested this here with a native project running under Visual COBOL for Eclipse and it worked perfectly.

Thanks.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: No results has happened when I use test coverage

Jump to solution

Hello Chris

Thank you for reply.

Today I tried many different folders.At the end I found problem.

There is three area I can add TESTCOVER environment variables

1.system environment variable

2.Project->Properties->Micro Focus COBOL->Run-time Configuration->Environment Variables

3.Run->Run Configurations->Environment

I add TESTCOVER in 1 and 2

1 makes it running under command line

When I move the configuration from 2 to 3,it worked under Visual COBOL for Eclipse

but I still don't know what's the effect when I add Environment Variable in project properties

Anyway I worked under Visual COBOL for Eclipse at the end

Thanks.

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: No results has happened when I use test coverage

Jump to solution

FYI, Test Coverage is only supported for native code projects.

I believe the problem that you are seeing is because you are trying to write the results file directly into the root directory.

I would suggest that you create a subfolder like C:\testcover into which you place your default.tcf file and modify the RESULT option to:

RESULT C:\testcover\tcresult.tcz ACCUMULATE

I tested this here with a native project running under Visual COBOL for Eclipse and it worked perfectly.

Thanks.

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: No results has happened when I use test coverage

Jump to solution

Hello Chris

Thank you for reply.

Today I tried many different folders.At the end I found problem.

There is three area I can add TESTCOVER environment variables

1.system environment variable

2.Project->Properties->Micro Focus COBOL->Run-time Configuration->Environment Variables

3.Run->Run Configurations->Environment

I add TESTCOVER in 1 and 2

1 makes it running under command line

When I move the configuration from 2 to 3,it worked under Visual COBOL for Eclipse

but I still don't know what's the effect when I add Environment Variable in project properties

Anyway I worked under Visual COBOL for Eclipse at the end

Thanks.

View solution in original post

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.