commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Pugh" <>
Subject RE: [vfs] running unit tests for Http provider
Date Wed, 23 Jun 2004 08:59:01 GMT
As I dig more into it..   I see your challenges with testing!  All the
different platforms means a LOT of external dependencies.   Something that
could be an approach would be to have two modes:  Real and Mock..  You could
Mock all the various platforms so that if someone is testing the logic of
VFS, they can run without having smb/webdav etc.  Then, to test that the
real world works, then you switch to Real mode, and run against smb and
webdav etc.

On the other hand, if you have a system setup to do this, and can therefore
run the tests for real, then maybe this isn't worth all the work.  The HTTP
one does though seem like an easy one to provide since the HTTP is a read
only provider..   But again, if you have a system, then that works..


> -----Original Message-----
> From: Mario Ivankovits []
> Sent: Wednesday, June 23, 2004 10:06 AM
> To: Jakarta Commons Developers List
> Subject: Re: [vfs] running unit tests for Http provider
> Eric Pugh wrote:
> >But now it fails on not finding a directory
> www.ibiblio.rog/maven/read-data.
> >Is it possible to a) Stick up docs on how to build and run the
> unit tests w/
> >what exteranal dependencies there are.  b) change the unit tests
> so that if
> >we are donig a readonly test, we could maybe point to files or something
> >that are on a public website, like maybe the VFS website?
> >
> >
> a) This might be possible, and for sure, completing the documentation
> should be a top priority ... but you know ;-)
> b) Not sure why we should provide a read-only test server for vfs as
> there are many write-tests one should do too.
> And the vfs tests expect a certain amount of files/directories and their
> content.
> And even if we are try to do this, think of the various different
> filesystem: sftp, smb, webdav, ...
> However i use a UML-Linux (UserModeLinux - something like vmware but for
> linux only) server which is configured in a manner that the vfs tests
> can pass (read and write).
> On every restart of this uml-linux instance the whole system is in a
> clear state and every update has been rollbacked.
> If it is allowed to provide a e.g. 70 MB download at apache i could
> simply upload it and everyone can use it to do the tests.
> --
> Mario
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message