By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,827 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

Introductory SimpleTest Question

P: n/a
I'm trying to cut my teeth on unit testing with SimpleTest by writing
tests for a new set of classes that do not have a web root. The
classes I want to test comprise a set of core services used by web
applications. Without a virtual host, is there any way to use the web
interface of SimpleTest? I think that would help me visualize what
I'm going more than using the command line option.

I tried faking it by using file:///path/to/my/project/tests, but only
got a directory list. Do I need a virtual host to do this or is there
another way?

Thanks.

Rob
Sep 15 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Sep 15, 1:33*pm, Rob Wilkerson <r...@robwilkerson.orgwrote:
I'm trying to cut my teeth on unit testing with SimpleTest by writing
tests for a new set of classes that do not have a web root. *The
classes I want to test comprise a set of core services used by web
applications. *Without a virtual host, is there any way to use the web
interface of SimpleTest? *I think that would help me visualize what
I'm going more than using the command line option.
If you don't want to use the command line, then you'll have to have a
server to interpret and run the PHP. A server will indeed be required
unless you're willing to use the command line, which is actually not
all that bad, truthfully.
I tried faking it by using file:///path/to/my/project/tests, but only
got a directory list. *Do I need a virtual host to do this or is there
another way?
None that I know of off the top of my head. Have you tried Xampp?
That's easy to install and run, and you'll have the host without the
hassle.
Sep 15 '08 #2

P: n/a
Rob Wilkerson wrote:
I'm trying to cut my teeth on unit testing with SimpleTest by writing
tests for a new set of classes that do not have a web root. The
classes I want to test comprise a set of core services used by web
applications. Without a virtual host, is there any way to use the web
interface of SimpleTest? I think that would help me visualize what
I'm going more than using the command line option.

I tried faking it by using file:///path/to/my/project/tests, but only
got a directory list. Do I need a virtual host to do this or is there
another way?

Thanks.

Rob
If you're using a browser, yes. The web server is what causes the PHP
code to be executed. Without it, all you're doing is opening the file
and displaying it in your browser.

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

Sep 15 '08 #3

P: n/a
r0g
Rob Wilkerson wrote:
I'm trying to cut my teeth on unit testing with SimpleTest by writing
tests for a new set of classes that do not have a web root. The
classes I want to test comprise a set of core services used by web
applications. Without a virtual host, is there any way to use the web
interface of SimpleTest? I think that would help me visualize what
I'm going more than using the command line option.

I tried faking it by using file:///path/to/my/project/tests, but only
got a directory list. Do I need a virtual host to do this or is there
another way?

Thanks.

Rob
If the files are on a webserver but just not in your domain's webroot
AND you have access to your apache config you could maybe add the folder
as a vhost in httpd.conf, give it some bullshit domain only you know
about and point your local machines hosts file at it's IP.

If you don't have access to the server config then, as suggested above,
you'll have to install a local server like Xampp or Wamp - assuming
you're on windows.

Roger Heathcote

http://movingtoubuntu.technicalbloke.co.uk
Sep 16 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.