473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Introductory SimpleTest Question

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
3 1584
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: A.M. Kuchling | last post by:
A new set of introductory pages for python.org is being developed. The current draft of a revised version is at http://www.python.org/topics/learn/ . If you're learning or have recently learned...
3
by: Stevey | last post by:
I have the following XML file... <?xml version="1.0"?> <animals> <animal> <name>Tiger</name> <questions> <question index="0">true</question> <question index="1">true</question> </questions>
3
by: Ekqvist Marko | last post by:
Hi, I have one Access database table including questions and answers. Now I need to give answer id automatically to questionID column. But I don't know how it is best (fastest) to do? table...
53
by: Jeff | last post by:
In the function below, can size ever be 0 (zero)? char *clc_strdup(const char * CLC_RESTRICT s) { size_t size; char *p; clc_assert_not_null(clc_strdup, s); size = strlen(s) + 1;
56
by: spibou | last post by:
In the statement "a *= expression" is expression assumed to be parenthesized ? For example if I write "a *= b+c" is this the same as "a = a * (b+c)" or "a = a * b+c" ?
2
by: Allan Ebdrup | last post by:
Hi, I'm trying to render a Matrix question in my ASP.Net 2.0 page, A matrix question is a question where you have several options that can all be rated according to several possible ratings (from...
1
by: Angel Tsankov | last post by:
Hello! Can someone recommend articles on migrating native C++ DLLs to managed C++ ones or an introductory book (or article) on .NET?
0
by: Bastien Continsouzas | last post by:
I am trying to set the include path for SimpleTest under Eclipse I have the following config : Eclipse : 3.2.0 PHPEclipse 1.1.8 SimpleTest plugin : 0.2.1 I ran a test I found on the...
0
by: Rob Wilkerson | last post by:
Hey guys - I have a test suite that's working when I include a test case via its absolute path. For portability, I'd rather include it just using its name, but it's failing with a "Failed to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.