n.
If you are able to test against 5.8.0 or bleadperl, that would also be
helpful - otherwise I'll do that myself.
Thanks,
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
amon.
> Another question is:
> How can I see which statements and branches are covered and which not?
> Because currently I know that for example 80% are covered, but not which
> branches are not covered.
Have you run the "cover" program? That will give you a detailed textual
or html report.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
rule
software is distributed with tests to be run at installation time, and if
the software is being installed in an environment where those tests cannot
easily be run, maybe just skipping them is an appropriate response.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
; Test::More
> some of the recent stuff by Abigail
> Test::Harness
Feel free to take a peek at my cpancover project, which should give you a
(very) rough idea about the size of various modules and how well they are
tested.
http://pjcj.sytes.net/cover/cpancover/cpancover.html
--
scripts tend to be run earlier in some setups, I'm not
> sure that's it going to be a useful distinction all of the time. There
> are certainly lots of test setups where it's not true for me.
Agreed.
It was really just a half baked idea of mine that may or may not have
any pr
On Mon, Dec 16, 2002 at 04:49:46PM +, Tony Bowden wrote:
> On Fri, Dec 13, 2002 at 12:16:53AM +0100, Paul Johnson wrote:
> > I also had thoughts along the lines of all tests not being equal.
> > Generally the earlier a test is run, the more important it is.
>
> This i
That, I'm
working on.
http://pjcj.sytes.net/cover/cpancover/cpancover.html
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
nstall/lib/site_perl/5.8.0
> /proj/dite/WorkArea/Raja/perl/install/lib/site_perl
>
> and
>
> program_1/cover.4 is :
>
> $db = {'collected' => ['statement','time'],'cover' => {'program_1.pl' =>
> {'statement' => {3 => [[[0]]]}}},'indent' => 0};
Looks about right for what you have reported.
Did you run make test on Devel::Cover? Did the tests pass?
Has anyone had any success with Devel::Cover on a 64 bit machine?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
am not able to understand why is it showing the coverage as 0.
Neither am I. I went through exactly the same procedure, except with
bleadperl, and everything worked as expected. Did all of the tests
pass? Is this a 64bit perl? Has anyone ever run Devel::Cover with a 64
bit perl? Maybe it'
.
Is this the best way to handle this, or have I missed something?
In this case, Rafael fixed the bug and added passing tests, so there was
no problem, but in general what is the solution?
Now I've asked the same question three times I'll wait for enlightenment :-)
--
Paul Johnson - [
ould failsafe. I don't know that I can
think of all the ways that one of my tests could fail to print the
expected output, so I prefer to explicitly state how many tests I am
going to run.
Though as Tels points out, this is probably not the biggest testing
problem facing most modules.
--
t the same
address.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
l and working in the wee hours.
At least I didn't make two releases on the same day :-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
This release adds complete condition coverage, as long as I haven't
forgotten anything. New is coverage for xor, &&= and ||=. I also try
to be a bit more lenient about constructs such as $val = shift || "???"
Hmm. I suppose I'll have to add support for // now.
Us
Just some bug fixes really. Oh, and the HTML output routine should be
able to find the templates now :-)
On CPAN and at my homepage, as usual.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Fri, Sep 06, 2002 at 04:40:40PM +0900, Tatsuhiko Miyagawa wrote:
> At Fri, 6 Sep 2002 01:59:36 +0200, Paul Johnson wrote:
>
> > Here's something really serious. As threatened, Devel::Cover 0.15 has
> > escaped into the wild, and is currently marauding around CPAN,
should I
put them, and how should I get them there? Advice sought.
Remember, this is still alpha code, so don't expect too much and you
won't be too disappointed.
It's on my homepage if you can't wait for CPAN.
Enjoy.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
> >
> > I just want to test it a little ;-)
>
> But, does it contain the B::SPECIAL fix? :)
Well, that bit of code has been completely reworked anyway. Do you have
a small example I could test with?
There are still bugs, but I think I should probably release it soon.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
ease all ready to go. It might even
happen tonight if I can stay awake ...
I just want to test it a little ;-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
ocally to
> each testfile, and that can be a problem if your testfiles chdir to
> different dirs.
Hopefully specifying -db,/full/path/to/db takes care of that.
Yes, this information should be in the docs.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
keep my network
connection up long enough to get it on CPAN.
Enjoy,
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
plied patches:
DEVEL14574
Built under linux
Compiled at Feb 9 2002 02:01:34
@INC:
/sw/packages/bleadperl/lib/5.7.2/i686-linux
/sw/packages/bleadperl/lib/5.7.2
/sw/packages/bleadperl/lib/site_perl/5.7.2/i686-linux
/sw/packages/bleadperl/lib/site_perl/5.7.2
/sw/packages/bleadperl/lib/site_perl/5.7.1/i686-linux
/sw/packages/bleadperl/lib/site_perl/5.7.1
/sw/packages/bleadperl/lib/site_perl
.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
competitors ever see this code.
sub import { eval '$main::ONE--' }
1
one.plx
===
#!/usr/bin/perl
# Copyright Paul Johnson, 2002
# This program is mine. You can't have it.
# Program to print 1
BEGIN { $ONE = 2 } # Initialisation.
use ONE;# Abstracted aw
rprised at just what constructs it did
include.
Maybe all the constructs it uses are tested earlier, but after all the
fingers that have been in the pie, it's probably time for someone to
take a good look at what gets tested where to make sure that the various
test programs do only use previously tested constructs as far as
possible.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Sun, Oct 21, 2001 at 07:31:20PM +0200, Tels wrote:
> On 21-Oct-01 Paul Johnson tried to scribble about:
> > On Thu, Oct 18, 2001 at 10:42:33PM -0400, Michael G Schwern wrote:
> >> On Thu, Oct 18, 2001 at 12:07:26AM -0600, chromatic wrote:
> >> > > - Of those
w ;)
Indeed.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
ests ended up in different directories and are not reported here.
- The URL is to my home machine so apologies if it is down or slow.
- I'll leave the data there for a while, but not for ever.
- This gives me plenty to work on
http://pjcj.sytes.net/cover.12493/cover_db/cov
with bleadperl.
I'll try to look further.
By the way, I got rid of perl-qa-metrics. It's basically dead, right?
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
On Sun, Oct 14, 2001 at 05:19:28PM +0200, Paul Johnson wrote:
> Hey! It's 0.12!
Better yet get 0.13. It's had some marginal quality control :-)
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
o a CPAN mirror near you, or get it now from my home page.
This announcement brought to you by the ! key.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
om my homepage.
Still lots to do though
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
might like to write.
Available from CPAN soon, or now from my homepage.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
;s even starting to get a little useful now
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
display any of that info. If
> | you set $verbose = 1 you'll see all the test output. For failed tests
> | it will just report their numbers.
>
> Where do I set $verbose?
make test TEST_VERBOSE=1
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
34 matches
Mail list logo