Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Further adventures with testing

by Zaxo (Archbishop)
on Sep 26, 2002 at 01:49 UTC ( #200782=note: print w/replies, xml ) Need Help??

in reply to Further adventures with testing

I recently had a similar revelation with new development of a module. It was my first venture into XS and I was a little at sea. It wasn't a complicated thing, but I got lost.

To start fresh, I began by writing the pod. That cleared up what I wanted to do, and gave me the API to work for. Then I wrote tests for that API, and for all the loading, constructor and destructor bits. Thirty tests covered it all.

With that new focus, it was nearly trivial to finish. I'd picked up enough XS in floundering around to fix up the typemaps so they only covered things I needed. With the API clear in my head, I was able to write XS to do those things.

perl Makefile.PL... make... make test... make clean... repair... perl Makefile.PL... make... make test... Done.


After Compline,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://200782]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-02-24 12:59 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (310 votes). Check out past polls.