Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: What is the largest number of tests you have created for a single project you have worked on?

by Discipulus (Canon)
on Jun 16, 2010 at 07:52 UTC ( [id://844981]=note: print w/replies, xml ) Need Help??


in reply to What is the largest number of tests you have created for a single project you have worked on?


very interesting!! I' have not grown rationally in coding and I fail in tests writing.. more .. normally I code by my own at work like at home and seven on ten it ends with a quick and lazy hack; -w use strict; use this; use that; abracadabra! The others three times my lack in test writing skill make the difference between me an a serious prof coder.

It remeber me the time when I was stucked wrinting a recursive dir walker .. atcroft it need an option more:
tests? like uncommenting my print statements?!
there are no rules, there are no thumbs..
  • Comment on Re: What is the largest number of tests you have created for a single project you have worked on?
  • Download Code

Replies are listed 'Best First'.
Re^2: What is the largest number of tests you have created for a single project you have worked on?
by atcroft (Abbot) on Jun 17, 2010 at 20:14 UTC

    Wow! I was surprised when I looked at the current poll and found it to be my earlier suggestion. Just-wow.

    My original reason for the idea was that I had started myself a small project in late January: I wanted to write something to standardize the abbreviations used in a lengthy list of customer addresses where I work. I started with a listing of US Postal Service abbreviations, and began writing expressions to check for common variations and replace them. In doing so, I realized I could use the Test::* framework to generate tests to make sure none of the patterns I had created were too lax or too aggressive, plus it would give me a reason to play with testing, something that I too have not done as much of as I should. When my generated count of tests exceeded 1.0e4, I began to wonder how many tests others had created/generated/written, and thus the question I posted. (As for the project, I ran out of to-its with a full 10+ minute run of the tests (exceeding 5.8e5, including, at that point, 9 failures), probably several dozen expressions left to write, and the eventual intent to try my hand at morphing it into some kind of usable module.)

      613,026 tests (generated by the script), taking 11m:50s to run, and all passed. I'm surprised (on all counts)!

      By the way, are there any modules anyone could recommend that actually do what I seem to have originally intended when I started this, to be able to give it an address part (such as an address line, or a US state) using a possibly common abbreviation and return one in which the common but not standard abbreviations are replaced? Just curious.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://844981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found