From user-return-68189-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Jul 01 15:46:51 2009
Return-Path:
Delivered-To: apmail-ant-user-archive@www.apache.org
Received: (qmail 96486 invoked from network); 1 Jul 2009 15:46:51 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3)
by minotaur.apache.org with SMTP; 1 Jul 2009 15:46:51 -0000
Received: (qmail 47064 invoked by uid 500); 1 Jul 2009 15:47:01 -0000
Delivered-To: apmail-ant-user-archive@ant.apache.org
Received: (qmail 46994 invoked by uid 500); 1 Jul 2009 15:47:01 -0000
Mailing-List: contact user-help@ant.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe:
List-Help:
List-Post:
List-Id: "Ant Users List"
Reply-To: "Ant Users List"
Delivered-To: mailing list user@ant.apache.org
Received: (qmail 46984 invoked by uid 99); 1 Jul 2009 15:47:00 -0000
Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 15:47:00 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of qazwart@gmail.com designates 74.125.92.144 as permitted sender)
Received: from [74.125.92.144] (HELO qw-out-1920.google.com) (74.125.92.144)
by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 15:46:50 +0000
Received: by qw-out-1920.google.com with SMTP id 4so446060qwk.10
for ; Wed, 01 Jul 2009 08:46:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=gamma;
h=domainkey-signature:mime-version:received:in-reply-to:references
:date:message-id:subject:from:to:content-type
:content-transfer-encoding;
bh=YXntewMieelLjAQk8ern1GdT2tcS1L5GASdiIA1dCk0=;
b=ckqRUyoWfrSCdFRYXfW5YZmKfyM/U9SXAtS4v5nDZv/7Tc/Qwj+ArlR1AonBcWUvto
7WeKrTv5STyoQoEjWRiF+w1S//OH5cH7QWJbXBqfJOkgYa45FzGvD0xLMKV7qgizSkWz
ldwLRgrXQMLOmBrFEcyV1SG4yAmuoCxxoTTK4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=gamma;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type:content-transfer-encoding;
b=N8REo6kfFb27Knsx4skhhYEVwjz60jjE3B5i6O0+/LadV7vZfpfypKuKtEV9e6E6WE
wnSq6WHA4Q0QyWMIc7lHLL5GEeQlh3MAHZtTRAJGIFv1qTdb2XhiJPF6OnvpdnHTBsNX
u+B4blY1SzsjdPRFgu0ujzwBA+FWDXtRmByxE=
MIME-Version: 1.0
Received: by 10.224.3.10 with SMTP id 10mr9103930qal.56.1246463189918; Wed, 01
Jul 2009 08:46:29 -0700 (PDT)
In-Reply-To:
References:
Date: Wed, 1 Jul 2009 11:46:29 -0400
Message-ID:
Subject: Re: Tests and Failures
From: David Weintraub
To: Ant Users List
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Virus-Checked: Checked by ClamAV on apache.org
You MIGHT be able to do this in Ant...
The JUnit test results are stored in a particular directory when you
do your builds. You should be able to search for the regular
expression:
testsuite errors=3D"0".* tests=3D"0".* time=3D"0"
And, if you find it, fail the buid via the task. Then
CruiseControl will pick up the build as a failure.
Here's a test I did:
DEBUG: Everything is peachy!
The combined all the test results into a single file. I tried
doing a loadresource, but it wouldn't take a fileset if there was more
than a single file in that file set.
Anyway, the concatenates all the test results into a single
file. I use the to filter out all the lines that contain
the regular expression that shows zero errors, tests, and time taken.
Once I've done that, I use the fail to fail the build, but I only fail
on the condition that the combined test results file is not empty. If
all the tests are valid, the file will be empty. If someone has a
bogus test, the file will not be empty.
On Tue, Jun 30, 2009 at 12:17 PM, Tennis Smith wrote:
> Hi,
>
> This is about ant used with cruisecontrol, but I thought someone here may
> know the answer. =A0Nobody seems to know on the cc mailer.
>
> I have a few tests that will be shown as "Tests: 0, Failures: 0, Errors: =
0,
> Duration: 0.0" in the dashboard's test suites report. =A0Generally, this =
is a
> poorly coded test or one that is commented out in the source. =A0So natur=
ally
> we'd like to know when that happens.
>
> How can I make ant/CC determine this is a failing test and report it that
> way?
>
> THanks,
> -T
>
--=20
David Weintraub
qazwart@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org