FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Mock HTTP servers for unit tests.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Mock HTTP servers for unit tests. [message #185689 is a reply to message #185686] Wed, 30 April 2014 17:35 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
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(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Disaster Mitigation Program - Apr. 27, 2014
Next Topic: Storing strings and numbers properly in CSV files
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 15:47:25 GMT 2024

Total time taken to generate the page: 0.06368 seconds