RE: pgTAP

2008-06-10 Thread leif . eriksen
> -Original Message- > From: Aristotle Pagaltzis [mailto:[EMAIL PROTECTED] > > that's the power of TAP. >... Wasn't that a hit for Huy Lewis years ago ?...

Problem and patch for Devel::Cover 0.61

2007-08-19 Thread leif . eriksen
I've been helping a little with the tapx project, and was unable to get any decent coverage. Most modules simply reported 'n/a' as their coverage for lines, branches etc, and Devel::Cover's html_minimal was warning of an attempt to use an un initialised value. The tapx team stated that they all had

RE: run C++ TAP output? (even easier)

2007-03-11 Thread leif . eriksen
Another option is to use IPC::System::Simple. The driver script is a neat idea, I used this variation for testing my harness wrapped around my Utils C library Say I had C code in a Utils library, one source file which might have this code /** * internal function */ static int hexChar2Int (

RE: Fixtures

2007-02-13 Thread leif . eriksen
Ruby has a nice description at http://manuals.rubyonrails.com/read/chapter/26 To quote "Fixtures is a fancy word for ‘sample data’. Fixtures allow you to populate your testing database with predefined data before your tests run." Think about how something like Test::MockDBI's set_retval_arry()

RE: Test::Builder feature request

2007-01-13 Thread leif . eriksen
I know this is iseveral days old , but we in Oz get the weekend before almost anyone else so bear with me. When dealing with a BoM (Ball of Mud), there is a fundamental collision of two concerns here. 1. To test the code, you need to change it. 2. Before changing the code, you should test it.

RE: Test::Builder feature request

2007-01-11 Thread leif . eriksen
You don’t have to use objects to get the same end effects as mocking objects. Mocking is a technique for OO code to achieve the following aim - "the code under test should not be changed to test it" The code _should_ (I'd prefer _must_ but lets not get into absolutes just yet) NOT be a

RE: Tidyview available via CPAN now

2006-10-17 Thread leif . eriksen
Thanx, I'll update. This was a hangover from an earlier prototype, where we actually made calls to perltidy itself, rather than the more flexible Perl::Tidy API. As such we didn’t detect a missing perltidy install until runtime. The current code makes no use of the perltidy program, only the AP

RE: Tidyview available via CPAN now

2006-10-17 Thread leif . eriksen
Thanx for that, I'll get onto it ASAP. And your absolutely right, I should have lowered the VERSION.pm into a safer namespace. Leif -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 17 October 2006 5:05 PM To: Leif Eriksen Cc: perl-qa@perl.org Su

Tidyview available via CPAN now

2006-10-16 Thread leif . eriksen
before and after tidy'ing, to guarantee semantic identity. Leif Eriksen -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.4/477 - Release Date: 16/10/2006 **

RE: TidyView - preview your perltidy options

2006-09-14 Thread leif . eriksen
tember 2006 10:43 PM To: Leif Eriksen Cc: perl-qa@perl.org Subject: Re: TidyView - preview your perltidy options Please excuse the stupid question, but is there any chance this could use Wx instead of Tk, since Wx installs from CPAN cleanly everywhere now (I think) and Tk doesn't seem to inst

RE: TidyView - preview your perltidy options

2006-09-14 Thread leif . eriksen
USE id etc. So I'm going for a little more feedback and stability before posting a release to CPAN - maybe I'm being too precious, I don’t know. Leif -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 14 September 2006 10:45 PM To: Leif Eriksen

Updated Tidyvew URL

2006-09-14 Thread leif . eriksen
Of course it had to be wrong didnt it - http://sourceforge.net/projects/tidyview/ <http://sourceforge.net/projects/tidyview/> if the https isnt working for you. Leif Eriksen -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 26

TidyView - preview your perltidy options

2006-09-14 Thread leif . eriksen
. The purpose of announcing this on PerlQA is that coding standards are often lumped into the 'QA'-bucket, so the QA mail-list seems most appropriate. I hope to announce this more widely (perl monks, CPAN maybe) in a few weeks. Thanx for your time, Leif Eriksen -- No virus

RE: Idea for updating the plan

2006-08-08 Thread leif . eriksen
ot;script X of Y running" piece of information. Having a "test A of B in script X of Y" is nice to if you have a plan. L -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 August 2006 5:06 AM To: perl-qa@perl.org Cc: Leif Eriksen Sub

Idea for updating the plan

2006-08-08 Thread leif . eriksen
idea is to have T::H do a dry run of finding scripts to run, to aid those who' like to try to develope a test-dashboard app, and who need to know how many scripts are going to run. Something like $HARNESS_SCRIPTS=count_scripts make test This could have T::H set an envvar like HARNESS_S

RE: Devel::Cover hackathon

2006-08-03 Thread leif . eriksen
I'm confused - was this a hackathon, or Iron Chef ? L -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 3 August 2006 11:57 PM To: perl-qa@perl.org Subject: Devel::Cover hackathon On Tuesday the first [insert desired time period here] Devel::Cover hac

RE: use Tests; # ?

2006-07-17 Thread leif . eriksen
I know we've moved on, but I'm in a completely different time zone, so please understand... I, like demerphq, also think that coming up with a name for each and every test is a good idea. It shouldn’t be hard to think of a description for each and every test. Just note down why you wrote that

RE: [OT] TDD + Pair Programming

2006-04-02 Thread leif . eriksen
I have done the "two programmers, one terminal" approach advocated by Beck for XP developments (not just TDD) and it worked well. We delivered on time with all features present and correct (where correct means the application passed the customers Business Acceptance Tests - first time). I should

RE: [OT] TDD only works for simple things...

2006-03-30 Thread leif . eriksen
I would classify what Adam does as "robustness" testing. Often the first release can be classified as "working, in a perfect world". Adam lives in a World of Evil. Let me expand. For most of us (this means "Not Adam"), we work during the Day and rest at Night. We don't call it "Day" and "Not D

RE: Network Testing

2006-02-16 Thread leif . eriksen
Well it depends on what your actually studying... 1. You have written the code to implement a network bridge, and you want to test i. the codes correctness ii. its ability to handle packets correctly for various configurations and load 2. You have a network bridge, and you want to

RE: First (developers) Release of Test::Shlomif::Harness

2005-10-11 Thread leif . eriksen
-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >That said, now that TAP is well documented (yay), there's nothing wrong >with writing other harnesses. Just as a comment, I used the TAP doco to write a VB console app for testing the non-GUI (library) part of a V

Re: Embedding tests in modules (inspired by my misreading of Test::Code)

2005-08-11 Thread leif . eriksen
g and itching and oi. Yeah I know... -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Embedding tests in modules (inspired by my misreading of Test::Code)

2005-08-11 Thread leif . eriksen
? Against it is the significant inertia the current .t regime enjoys, but it seems an interesting idea. -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: Re: OSCON testing tutorial?

2005-07-20 Thread leif . eriksen
Plus donuts and dancing girls. Donuts ? Did you say donuts !? What kind ? -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: [Maybe Spam] Re: Devel::Cover Problem: testing || for a default value.

2005-07-11 Thread leif . eriksen
n when it does happen is up to the developer. Getting 100% coverage via D::C is another motivation. -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: Devel::Cover Problem: testing || for a default value.

2005-07-11 Thread leif . eriksen
ery lightweight unless test.This seems OK to me, but I know opinions on this cover a wide spectrum. The only caveat is in regards to those psycho's who like to bless into the '0' namespaceI believe '' and undef result in blessing into main:: -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: Re: is_deeply() and code refs

2005-06-26 Thread leif . eriksen
the resulting data is the same. Would anyone be in doubt that it should pass? I'm guessing that is_deeply tests for 'semantic equivalence', not 'syntactic equivalence' - or is that a whole unopen can of worms? -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: [Maybe Spam] Re: DBD-mysql coverage == 56% - am I on drugs ??

2005-05-12 Thread leif . eriksen
hnson may have this written up somewhere, but, if not, I should really write something up about this since I've used it to determine Perl's test coverage. Generating coverage tests for XS code - why are my hands shaking ? Thanks - I'm sure it wil be needed one way or the other. -- Lei

Re: DBD-mysql coverage == 56% - am I on drugs ??

2005-05-12 Thread leif . eriksen
[EMAIL PROTECTED] wrote: Leif Eriksen wrote: Can this be right ? --- -- -- -- -- -- -- File stmt branch condsub time total

DBD-mysql coverage == 56% - am I on drugs ??

2005-05-12 Thread leif . eriksen
situation. -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Devel::Cover and -d:ptkdb report problem, 'make test' does not

2005-02-08 Thread leif . eriksen
ROY created new reference to dead object 'DBI::dr' during global destruction. Now I dont know where to go from here - have I uncovered a bug in DBI ? Or is it elsewhere ? How do I interprete the stat and wstat values form D::C ? Do I need to compile a debug version of perl and step through under the debugger with that ? -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

eq_array testing values prematurely...

2005-02-07 Thread leif . eriksen
lock secs ( 0.33 cusr + 0.02 csys = 0.35 CPU) I'm guessing this is the right forum to post this too - unless I should go right ahead and file with RT...? -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: [Maybe Spam] Re: Anomalous Difference in Output between HTML Files Created by

2005-01-31 Thread leif . eriksen
[, globals[, locals]]) ... This launches the debugger mid-script - nice. I've heard there has been some talk/suggertions of doing this in Perl 6 -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: Anomalous Difference in Output between HTML Files Created by 'cover'

2005-01-30 Thread leif . eriksen
I'd guess it is because you are seeing the output of the code after it has been compiled-then-decompiled - it is compiled so it can run and coverage statistics can be collected, then it is decompiled to relate coverage stats to code lines. Now there are many ways to write code that compiles to

SegFault under Devel::Cover for sort

2005-01-24 Thread leif . eriksen
ut to no avail. Any pointers as to how I can progress solving this ? Do you need the core dump ? Platform info [EMAIL PROTECTED] perl]$ uname -a Linux itdevtst 2.4.20-31.9 #1 Tue Apr 13 18:04:23 EDT 2004 i686 i686 i386 GNU/Linux [EMAIL PROTECTED] perl]$ perl -v This is perl, v5.8.0

Re: [Maybe Spam] Re: failures under Devel::Cover only

2005-01-20 Thread leif . eriksen
[EMAIL PROTECTED] wrote: Leif Eriksen wrote: Hi, I am doing some testing under Devel::Cover, and get some weird results sometimes. What should I be looking at in my code or test cases that is provoking this discrepancy? Look for code that sneaks past perl under normal circumstances but not

failures under Devel::Cover only

2005-01-19 Thread leif . eriksen
-- -- -- ------ ------ ++ [EMAIL PROTECTED] src]$ perl -MTest::More -e 'print Test::More->VERSION()' 0.47 -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: [Maybe Spam] Coverage testing success story.

2004-12-14 Thread leif . eriksen
he exercise - the bugs you find when you think 'its got 98% coverage, there cant possibly be any bugs left...oh, look' -- Leif Eriksen Snr Developer http://www.hpa.com.au/ phone: +61 3 9217 5545 email: [EMAIL PROTECTED]

Re: Harness runs the sub, D::C says I haven't

2004-11-16 Thread Leif Eriksen
#x27; runs over a long period (in this case weeks)). We'll never know now. Morale - clean up and try from scratch before hitting the 'emergency email support' button. Thanx so much for your patience Paul - if your ever in Melbourne, I owe you a few shouts at the bar - I recommend a James Boags. Leif Eriksen aka Mr Testing SmartyPants (you can tell I'm please with myself cant you)

Re: Harness runs the sub, D::C says I haven't

2004-11-16 Thread Leif Eriksen
Paul Johnson wrote: On Sat, Nov 13, 2004 at 12:33:01PM +1100, Leif Eriksen wrote: First, thanx so very much for responding so quickly... That was just to make up for the short delay here, and the much longer delay to your last mail to me ;-) Hey, we had a weekend in between, and its not

Re: Harness runs the sub, D::C says I haven't

2004-11-13 Thread Leif Eriksen
First, thanx so very much for responding so quickly... Paul Johnson wrote: On Sat, Nov 13, 2004 at 12:46:16AM +1100, Leif Eriksen wrote: Even though Test::More is reporting (via make test) that every test Could you try putting the use_ok inside a BEGIN block, as Test::More recommends? OK

Harness runs the sub, D::C says I haven't

2004-11-12 Thread Leif Eriksen
e some interaction with Test::More::use_ok that is stopping D::C instrumenting the module correctly ? Is there some other switch in D::C I need to use ? Leif Eriksen

special blocks tests fail on 5.8.0

2004-10-27 Thread leif . eriksen
k the code for a CHECK block? Do I have to trace the dynamically generated command maually ? -- Leif Eriksen Snr Developer HPA Pty Ltd ph +61 3 9217 5545 diff -Naur test_output/cover/special_blocks.5.008 test_output/cover_new/special_blocks.5.008 --- test_output/cover/special_blocks.5.008 20