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


Groups > comp.lang.php > #13481

Re: Mock HTTP servers for unit tests.

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Mock HTTP servers for unit tests.
Date 2014-04-30 13:35 -0400
Organization A noiseless patient Spider
Message-ID <ljrc9o$ofg$1@dont-email.me> (permalink)
References (4 earlier) <e%W7v.134328$1j7.17611@fx01.iad> <ljpf3g$nba$2@dont-email.me> <MzX7v.346104$2N5.318310@fx05.iad> <ljphbt$59f$1@dont-email.me> <qI98v.145661$RL1.64243@fx22.iad>

Show all headers | View raw


On 4/30/2014 12:40 PM, Daniel Pitts wrote:
> On 4/29/14 5:50 PM, Jerry Stuckle wrote:
>> On 4/29/2014 8:35 PM, Daniel Pitts wrote:
>>> You do this nearly every single time I post to this newsgroup.  You
>>> don't understand my requirements, and I do.  Stop trying to read into
>>> it.  I asked about Mock server, and provide an example that looks like
>>> it should work.  I have asked for experience with said mock server, or
>>> other similar systems.
>>>
>>>
>>
>> I understand WHAT YOU SAY.  I told you how EXPERIENCED PROGRAMMERS do
>> it.  And I probably have more programming experience (going on 47 years
>> now) than you've been alive.  And I've probably worked on more projects,
>> from one programmer to a couple of hundred programmers, than you will
>> ever dream of.
> You might have more years under your belt, that doesn't mean you're
> better than me.  I've got 24 years of programming experience.  I've
> developed many things from scratch, alone and in teams, including
> enterprise applications, large scale websites, graphics drivers, physics
> simulators, ray tracers, CPU emulators.  I've had successful projects,
> and I've had failed projects.  I've written complete applications in C,
> C++, Java, Assembly, PHP.
>

It also doesn't mean I am NOT better than you.  I've been consulting for 
a lot of big companies in the last 24 years - most of them from the 
Fortune 500 list.  By the time you started programming, I already had 13 
years with IBM and had been programming for 10 years before that.

You may *think* you know how to test.  But your reply shows otherwise.

> I tell you none of this to receive validation or kudos.  Only to let you
> know the context of my question.  I'm not budding young programmer; I'm
> an experienced veteran.  When I say I want a Mock HTTP server, I know
> that's exactly what I want, and it will do what I want.
>

A mock server will give you *some* good results.  But it will not 
duplicate real world situations, nor will it give you *all* of the 
results you want.

> The reason I looked to Google and here for such a mock-server is that
> I'm experienced enough to know I don't want to build one from scratch.
> Even though I'm capable enough to do so.
>

And you didn't find much because experienced programmers don't use them.

> I want one I can easily integrate into my project so that the dozens of
> other developers that depend on my code-base can benefit with the
> minimum amount of work on their part.  I don't want them to have to set
> up a new Apache or Nginx instance just to be able to run Unit Tests. *I*
> don't want to set up an instance just for unit tests.

It is quite easy to set up an Apache server.  You can even include a 
pre-configured one in your package for others to install - very easily.

But you're looking for shortcuts.  They don't exist in *good* testing.

>>
>> And I've seen more people like you who don't know what they're doing -
>> but want someone to validate it.  It ain't gonna happen here.
> That's not what I'm asking for.  I've validated the approach I'm taking.
>>
>> And if you don't like the answer, don't ask the question.
> I'm asking for options of Mock HTTP servers.  You gave your opinion.  I
> read it, considered it, and I have decided it isn't the right fit.  You
> needn't reply further.

And I'm trying to tell you why you're off base.  However, your mind is 
made up.  You don't want to be bothered with the facts.

>>
>> Another option wold be for you to listen to experience - but I know that
>> won't happen.  You already have the answers.
>
> I gave my reasons why your solution didn't work for me. It may work for
> others in smaller companies with fewer developers.  I answer to about a
> dozen different *teams* of developers, so I want to provide the solution
> as self-encapsulated as possible.
>

Yes, basically you said you're too lazy to do it right.  A little work 
and the solution can be self-encapsulated.

> Thanks for your input.  I do appreciate the advice you gave in the first
> reply, even though it wasn't right for my situation.
>
> Unless you have experience with *mock* servers which meet my
> requirements, you need not reply further.
>
> Thanks,
> Daniel.
>
>

No, I don't have experience with mock servers because I test things the 
right way.

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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-29 10:23 -0700
  Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-29 14:51 -0400
    Re: Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-29 13:24 -0700
      Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-29 16:39 -0400
        Re: Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-29 16:56 -0700
          Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-29 20:08 -0400
          Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-29 20:11 -0400
            Re: Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-29 17:35 -0700
              Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-29 20:50 -0400
                Re: Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-30 09:40 -0700
                Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-30 13:35 -0400
                Re: Mock HTTP servers for unit tests. The Natural Philosopher <tnp@invalid.invalid> - 2014-04-30 20:46 +0100
              Re: Mock HTTP servers for unit tests. Michael Vilain <vilain@NOspamcop.net> - 2014-04-30 00:00 -0700
                Re: Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-30 09:46 -0700
                Re: Mock HTTP servers for unit tests. Christoph Michael Becker <cmbecker69@arcor.de> - 2014-04-30 19:59 +0200
          Re: Mock HTTP servers for unit tests. Denis McMahon <denismfmcmahon@gmail.com> - 2014-04-30 14:28 +0000
            Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-30 11:34 -0400
              Re: Mock HTTP servers for unit tests. Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-01 01:47 +0000
                Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-30 22:37 -0400
            Re: Mock HTTP servers for unit tests. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2014-04-30 09:49 -0700
              Re: Mock HTTP servers for unit tests. Jerry Stuckle <jstucklex@attglobal.net> - 2014-04-30 13:38 -0400
              Re: Mock HTTP servers for unit tests. Christoph Michael Becker <cmbecker69@arcor.de> - 2014-04-30 19:41 +0200
  Re: Mock HTTP servers for unit tests. Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-01 13:54 +0200

csiph-web