You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Christian Trutz <ch...@smilebase.org> on 2003/08/12 16:38:56 UTC
[test] Junit test failed
hi folks,
the following test are not ok:
org.apache.geronimo.deployment.scanner.WebDAVScannerTest
org.apache.geronimo.common.StackThreadLocalTest
is anyone working on this=?
chris
Re: [test] Junit test failed
Posted by Bodo Wippermann <bo...@bodow.de>.
On Tuesday 12 August 2003 22:08, Jeremy Boynes wrote:
> > 1. org.apache.geronimo.deployment.scanner.WebDAVScannerTest
> > you have to set up a WebServer with WebDAV enabled and be able
> > to access
> > "http://localhost/testScan".
> > after that the test is OK.
>
> This one is down to me.
>
> Does ASF have any mechanism for testing features that reply on specific
> infrastructure? Should we just separate them out and leave to individuals
> to test?
>
> This test needs a WebDAV server configured in a specific way to run. I can
> forsee other tests in the future that also need external resources e.g. a
> database mapping test for Oracle, a security client test for
> ActiveDirectory, ...
Since i'm not very familiar with ASF projects ( this is the first one i
joined), i do not know if there are mechanisms.
perhaps it's an idea to separate those test runs and to let testers decide
which tests they want to run ( and are able to ).
Or, before running the test , try to check if all preconditions are set.
Re: [test] Junit test failed
Posted by James Strachan <ja...@yahoo.co.uk>.
On Tuesday, August 12, 2003, at 09:08 pm, Jeremy Boynes wrote:
>
>> 1. org.apache.geronimo.deployment.scanner.WebDAVScannerTest
>> you have to set up a WebServer with WebDAV enabled and be able
>> to access
>> "http://localhost/testScan".
>> after that the test is OK.
>
> This one is down to me.
>
> Does ASF have any mechanism for testing features that reply on specific
> infrastructure? Should we just separate them out and leave to
> individuals to
> test?
In the past I've done one of the following things for this.
* use Mock objects to simulate a real external service
* use a naming convention to separate 'system tests'. e.g. I've used
*SystemTest.java to denote system tests (test requiring a system to be
available, rather than a unit test case).
* sometimes you want to run the unit tests with different platforms -
e.g. different JMS providers or different databases etc. In cases like
these I often make a separate Maven project which typically reuses the
same JUnit code base but changes the configuration & compile time
dependencies to use a different driver/platform etc.
Any of those might help. e.g. tests requiring other infrastructure
could go into the 'functional test' project?
James
-------
http://radio.weblogs.com/0112098/
RE: [test] Junit test failed
Posted by Jeremy Boynes <je...@coredevelopers.net>.
> 1. org.apache.geronimo.deployment.scanner.WebDAVScannerTest
> you have to set up a WebServer with WebDAV enabled and be able
> to access
> "http://localhost/testScan".
> after that the test is OK.
This one is down to me.
Does ASF have any mechanism for testing features that reply on specific
infrastructure? Should we just separate them out and leave to individuals to
test?
This test needs a WebDAV server configured in a specific way to run. I can
forsee other tests in the future that also need external resources e.g. a
database mapping test for Oracle, a security client test for
ActiveDirectory, ...
--
Jeremy
Re: [test] Junit test failed
Posted by Bodo Wippermann <bo...@bodow.de>.
On Tuesday 12 August 2003 16:38, Christian Trutz wrote:
> hi folks,
>
> the following test are not ok:
>
> org.apache.geronimo.deployment.scanner.WebDAVScannerTest
> org.apache.geronimo.common.StackThreadLocalTest
>
>
> is anyone working on this=?
>
> chris
got the same problem:
1. org.apache.geronimo.deployment.scanner.WebDAVScannerTest
you have to set up a WebServer with WebDAV enabled and be able to access
"http://localhost/testScan".
after that the test is OK.
2. org.apache.geronimo.common.StackThreadLocalTest
yes, the test is not OK. i will try to send a patch to this list.
Bodo