How can I run Perl test cases in Eclipse using EPIC?

I am using eclipse EPIC (Perl plugin) to run my Perl scripts. Scripts work fine. but I want to group my scripts and work together. How can i do this?

The scripts that I run are test cases. Therefore, in principle, it would be nice if I could take the results of each script and display them in a table, for example, or write all the results to a file. How can i do this?

And can I connect to a remote host to run scripts?

+3
source share
2 answers

If you use Windows, you can use a batch (.bat) file to run scripts in groups. Create a testcase.bat file in a text editor and enter the following lines into it:

perl script1.pl
perl script2.pl
perl script3.pl

where script1.pl, script2.pl and script3.pl are your script file names.

Then run the testcase.bat file from the command line.

You will have to print the outputs from each script into a shared file by opening the file descriptor. The "append" "→" mode will be useful here.

+1
source

Use the "external tool setup" in eclipse and run

prove -l

from your workspace directory (I assume all modules are under lib /).

This is a Perl application, starting with Test :: More, which is basic to all tests and prints good reports. I use it under windows.

, , Devel:: Cover, ,

/,

http://perl-node-interface.blogspot.com/2011/06/how-to-use-develcover.html

, Devel:: Cover Windows.

+1

Source: https://habr.com/ru/post/1712183/


All Articles