Return-Path: Delivered-To: apmail-cocoon-lenya-dev-archive@cocoon.apache.org Received: (qmail 30217 invoked by uid 500); 1 Jun 2003 21:10:44 -0000 Mailing-List: contact lenya-dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: "Lenya Developers List" Delivered-To: mailing list lenya-dev@cocoon.apache.org Received: (qmail 30206 invoked from network); 1 Jun 2003 21:10:44 -0000 X-Injected-Via-Gmane: http://gmane.org/ To: lenya-dev@cocoon.apache.org From: Andreas Hartmann Subject: Re: DefaultSiteTreeTestCase FAILS Date: Sun, 01 Jun 2003 23:10:29 +0200 Lines: 29 Message-ID: References: <32840.141.154.73.181.1054388078.squirrel@mail.wyona.com> <32855.141.154.73.181.1054484278.squirrel@mail.wyona.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@main.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030529 X-Accept-Language: en-us, en In-Reply-To: <32855.141.154.73.181.1054484278.squirrel@mail.wyona.com> Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Michael Wechner wrote: [...] > right, but how do we encourage (or rather enforce) people to write > more test cases (during Sprints on a regular basis would be a > possibility...)? I could imagine the following first steps: - all existing tests must run - in the beginning - ask the committers personally to write tests - putting some links to a good JUnit tutorial etc. in the docs > No problem, but how we can we make this path relative? The only solution I found is to pass the path as a JVM parameter to the test. I'm calling the test class from the build script (not via the TestRunner) so I can access the main(String[]) arguments. The problem is that the test must be invoked from the build script. I hardcoded the paths as a fallback in the class, so that I can run my tests from the IDE which makes test debugging easier. If you're interested in the implementation, have a glance at the AntTask and workflow test cases. Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org For additional commands, e-mail: lenya-dev-help@cocoon.apache.org