Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8056 > unrolled thread

php unit testing - how to find the right person

Started bysunnysideup <nfrancken@gmail.com>
First post2013-01-09 20:21 -0800
Last post2013-01-10 18:25 +0000
Articles 3 — 3 participants

Back to article view | Back to comp.lang.php


Contents

  php unit testing - how to find the right person sunnysideup <nfrancken@gmail.com> - 2013-01-09 20:21 -0800
    Re: php unit testing - how to find the right person Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-10 10:04 -0500
      Re: php unit testing - how to find the right person legalize+jeeves@mail.xmission.com (Richard) - 2013-01-10 18:25 +0000

#8056 — php unit testing - how to find the right person

Fromsunnysideup <nfrancken@gmail.com>
Date2013-01-09 20:21 -0800
Subjectphp unit testing - how to find the right person
Message-ID<7635e344-20cb-4555-bdc2-03fa3240ec9e@googlegroups.com>
Hi

I am looking for someone who can write some php unit tests for me (see: http://doc.silverstripe.org/framework/en/howto/phpunit-configuration).  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-Application.html that may should a sort of internship.

Any ideas on how to find a match for this project? 

Nicolaas

[toc] | [next] | [standalone]


#8059

FromJerry Stuckle <jstucklex@attglobal.net>
Date2013-01-10 10:04 -0500
Message-ID<kcmla6$dlf$1@dont-email.me>
In reply to#8056
On 1/9/2013 11:21 PM, sunnysideup wrote:
> Hi
>
> I am looking for someone who can write some php unit tests for me (see: http://doc.silverstripe.org/framework/en/howto/phpunit-configuration).  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-Application.html that may should a sort of internship.
>
> Any ideas on how to find a match for this project?
>
> Nicolaas
>

Sorry to say, I doubt you'll find anyone qualified to write that many 
tests for as little as you're paying.  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.

If you want a cheap programmer, you'll get exactly what you pay for.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#8062

Fromlegalize+jeeves@mail.xmission.com (Richard)
Date2013-01-10 18:25 +0000
Message-ID<kcn12d$7h2$1@news.xmission.com>
In reply to#8059
[Please do not mail me a copy of your followup]

Jerry Stuckle <jstucklex@attglobal.net> spake the secret code
<kcmla6$dlf$1@dont-email.me> thusly:

>On 1/9/2013 11:21 PM, sunnysideup wrote:
>> Hi
>>
>> I am looking for someone who can write some php unit tests for me
>(see:
>http://doc.silverstripe.org/framework/en/howto/phpunit-configuration). 
>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-Application.html that may should a sort of internship.
>>
>> Any ideas on how to find a match for this project?
>>
>> Nicolaas
>>
>
>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,
ExchangeRateProvider.php,
<https://github.com/sunnysideup/silverstripe-ecommerce/blob/master/code/money/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>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.php


csiph-web