Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 5381 invoked by uid 99); 18 Oct 2006 15:27:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 08:27:57 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of pseudonymorama@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2006 08:27:54 -0700 Received: by nf-out-0910.google.com with SMTP id n15so744580nfc for ; Wed, 18 Oct 2006 08:27:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=h8H11ZoYJK8KIIJpibh+/p2GRpBkDH/jQ7Fa70tn9L/75gsBFUn3HnrohLBs7mcJ23ofTYJu+Sbb1DAJF0KNXl5XINM1sxXR9AZU5KDj4KqyhfvoW63waWOuYR49NxGkyfmPl8IyaedGedVmXP2w8I9LeEZSwbdxFjf48y0hz4U= Received: by 10.82.126.19 with SMTP id y19mr2237810buc; Wed, 18 Oct 2006 08:27:32 -0700 (PDT) Received: by 10.78.172.13 with HTTP; Wed, 18 Oct 2006 08:27:31 -0700 (PDT) Message-ID: <8dc025f0610180827k3090fc10udb45cf3f7e7a4f3d@mail.gmail.com> Date: Wed, 18 Oct 2006 10:27:31 -0500 From: "Pseudo Nym" To: cactus-user@jakarta.apache.org Subject: Are cactus tests running on the server? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I've been attempting, without any luck, to get server-side JUnit tests to test my code in-container using the new, annotation-style JUnit 4 tests. I'm using the Ant 1.7 beta to deploy my code and run my tests, as this version has JUnit 4 functionality built in. I attempted to use both JUnitEE and Cactus to run my tests. I was successfully able to get JUnitEE to run JUnit 3.8 style tests, but the various permutations of configurations I tried using JUnit 4 failed to work. I tried with and without the JUnit4TestAdapter in a suite() method. I was getting different errors depending on the setup I was using; however, none of them worked. My attempts to get cactus working seemed to meet with more success, and the tests do run. However, I am skeptical as to whether my setup is actually running the tests from the sever, and not on the local box. The reason I say that is that when I forgot to package some jars that were necessary to the build, the ant tests still ran and passed. However, when I used the cactus servlet to run the tests manually, they would fail. Here's the relevant section of my ant script for my cactus tests. Note, it's pretty messy at the moment, as the goal was more to get things working than to have a clean final script. Cactus JUnit test failures Beginning (re)deployment of servlet at ${webserver.tests.url} Waiting for servlet to be undeployed... Unable to undeploy previous servlet Waiting for servlet to be deployed... Unable to deploy servlet Any help I could get concerning this would be most appreciated. Google, and posting and searching various java forums hasn't gotten me any useful answers. For that matter, just letting me know if you've had similar difficulties, or no difficulties with the same task would be useful, as it'd give a hint as to whether I'm missing something obvious. Thanks.