|Re: php unit testing - how to find the right person [message #180128 is a reply to message #180125]
||Thu, 10 January 2013 13:25
[Please do not mail me a copy of your followup]|
Jerry Stuckle <jstucklex(at)attglobal(dot)net> spake the secret code
> On 1/9/2013 11:21 PM, sunnysideup wrote:
>> I am looking for someone who can write some php unit tests for me
> I have advertised on freelancer.com, but I am wondering if I should
> advertise somewhere else.
>> I cant pay a lot for this job (hardly anything in fact), but I think
> it is an interesting job:
> https://www.freelancer.com/projects/PHP/travis-test-for-Silverstripe-Applic ation.html that may should a sort of internship.
>> Any ideas on how to find a match for this project?
> Sorry to say, I doubt you'll find anyone qualified to write that many
> tests for as little as you're paying.
Having written a PHP application using TDD and unit testing, I'd
agree. My project: <http://manx.codeplex.com>.
Just browsing through the code on github, I see that the code is
coupled directly to other concrete objects and APIs, so it would need
some decoupling to be truly unit tested. For instance,
< https://github.com/sunnysideup/silverstripe-ecommerce/blob/master/code/mone y/ExchangeRateProvider.php>,
directly calls the curl API, so attempting to unit test that code is
going to invoke HTTP calls to a Yahoo API.
In my project, I decoupled myself from curl through an interface, but
this is extra work that would be needed to be done in order to test
the code in isolation for this code base.
> And you need an experienced
> person to write accurate unit tests - inexperienced people just don't
> have the knowledge to know what to look for. You also need good
> documentation of the modules so one knows what to look for.
I agree. It wasn't obvious to me how many classes are in this code
(the few directories I looked at under the code directory seemed to
have only a single file in them) and how many methods need to be
tested, etc. The two classes I did look at had coupling that would
need to be broken before true unit tests could be written.
> If you want a cheap programmer, you'll get exactly what you pay for.
Ain't it always this way?
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
The Terminals Wiki <http://terminals.classiccmp.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>