Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Testing module on Windows

by zwon (Abbot)
on Jul 12, 2011 at 16:19 UTC ( [id://913954]=perlmeditation: print w/replies, xml ) Need Help??

At the end of March I uploaded module on CPAN. Three months and fourteen releases later I finally got first test report for Win32 platform. Not surprisingly it is fail. Though not personally using Windows I would like to fix module, but with one test report in three months it may take a lot of time. Why is it such situation with testing on Windows? It seems that it's quite popular and a lot of people still using it.

I found No More Excuses For Not Testing Modules On Windows, but it sounds a bit too extreme for me. It would be nice to have some sort of service where I could submit tarball and get test results.

Replies are listed 'Best First'.
Re: Testing module on Windows
by SankoR (Prior) on Jul 12, 2011 at 18:39 UTC

    If you're looking for tests for RedisDB, give me a bit and I'll check it out. Years ago, I smoked both CPAN and what became perl 5.10 on Win32 (I'm vain so I checked and I'm still in the top 125 overall CPAN testers and top 25 for Windows) but quit when my reports started bouncing. I was told to hold off until the transition to CPAN Testers 2 was complete but by then apathy had set in...

    PSA: No matter what platform you're on, submitting test reports is a really great way to passively contribute; anyone who'd like to at least try it out should take a look at the quick start guide in the CPAN Tester's wiki. If you have a few old boxes collecting dust, you could put them to work full time or try the less extreme alternative and submit tests for modules you install.

Re: Testing module on Windows
by Anonymous Monk on Jul 12, 2011 at 18:24 UTC

    It would be nice to have some sort of service where I could submit tarball and get test results.

    All it takes is for one monkey to sign up for No More Excuses For Not Testing Modules On Windows, setup cpan/cpanp...., schedule a job with at, and let it run and report results back to cpan testers

    It just takes one

      I did ask when those VMs were first set up whether they could be used for CPAN testing. I was told no. I guess that's reasonable, as it's meant to be a shared resource for *individual developers* to use, not for one person to hog the CPU, memory and I/O.
Re: Testing module on Windows
by FunkyMonk (Chancellor) on Jul 13, 2011 at 11:13 UTC
    See why no testing under Windows? and its follow-ups for a recent discussion on the CPAN-Testers mailing list.

    [In that particular case, a test was obtaining the date using the external date command. That works fine on *nix, but on windows it expects user input. The result was a hanging test on Windows and no report was generated.]

Re: Testing module on Windows
by FunkyMonk (Chancellor) on Jul 13, 2011 at 11:58 UTC
    I used to run a Windows CPAN smoker, but gave up. Windows is just Too Much Pain. I see that I had RedisDB blocked in my distroprefs (that usually means that it hangs during testing). I ran its tests and got...

    It hung at that point :(

      Thanks, I see now, probably it takes more than one monkey to setup Windows testing ;) Hopefully version 0.16 of RedisDB fixes this problem. Thanks to SankoR for his suggestions about the fix.

Re: Testing module on Windows
by Logicus (Initiate) on Jul 14, 2011 at 00:55 UTC
    You could use oracle VM virtual box to run an instance of windows inside a VM to test your code on.

      This still requires paying for a copy of Windows.

      Instead, consider using the Windows VMs that Adam Kennedy persuaded Microsoft to set up for CPAN authors' use.

      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://913954]
Approved by Corion
Front-paged by MidLifeXis
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found