Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
TestNG behaviour when no methods are found
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eran  
View profile  
 More options Jun 20 2006, 9:15 am
From: Eran <eran...@gmail.com>
Date: Tue, 20 Jun 2006 16:15:15 +0300
Local: Tues, Jun 20 2006 9:15 am
Subject: TestNG behaviour when no methods are found

Hi,

Today, if TestNG is invoked and it doesn't find any tests to run, it marks
the test run as a success (0/0/0).
Obviously, if you open the reports you could see that no test was executed
but if you run TestNG automatically by Ant and rely on the failureProperty
to perform some actions, that can lead to a problem.
As it's common to make mistakes like misspelling a group, people might get
the false impression that all tests pass when in fact no test was executed.
Therefore, I believe that such an "empty run" should be considered as a
failure.

What does everybody think?

Regards,
Eran


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alexandru Popescu  
View profile  
 More options Jun 20 2006, 9:46 am
From: "Alexandru Popescu" <the.mindstorm.mailingl...@gmail.com>
Date: Tue, 20 Jun 2006 16:46:17 +0300
Local: Tues, Jun 20 2006 9:46 am
Subject: Re: TestNG behaviour when no methods are found
IMO a failing test is completely different from an empty test class.
What we can probably do, but I am not yet convinced is possible, is to
signal somehow that nothing was run.

./alex
--
.w( the_mindstorm )p.

On 6/20/06, Eran <eran...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hani Suleiman  
View profile  
 More options Jun 20 2006, 9:49 am
From: Hani Suleiman <h...@formicary.net>
Date: Tue, 20 Jun 2006 14:49:09 +0100
Local: Tues, Jun 20 2006 9:49 am
Subject: Re: TestNG behaviour when no methods are found
An exception or error message should be shown, explaining what was  
searched and why tests weren't found, for example:

WARN: No tests found in groups 'foo', 'bar', 'poo'

On Jun 20, 2006, at 2:46 PM, Alexandru Popescu wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eran  
View profile  
 More options Jun 20 2006, 10:24 am
From: Eran <eran...@gmail.com>
Date: Tue, 20 Jun 2006 17:24:42 +0300
Local: Tues, Jun 20 2006 10:24 am
Subject: Re: TestNG behaviour when no methods are found

Printing an warning/error message is definitely a must but unfortunately it
requires a human to read it...
Perhaps we can set the failure property to a special value?

Regards,
Eran

On 6/20/06, Hani Suleiman <h...@formicary.net> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Jun 20 2006, 11:10 am
From: "Cédric Beust ♔ " <cbe...@google.com>
Date: Tue, 20 Jun 2006 08:10:43 -0700
Local: Tues, Jun 20 2006 11:10 am
Subject: Re: TestNG behaviour when no methods are found

Hi Eran,

This is a good point and I've been bitten by it a few times as well.  I
think it makes sense to make an exception for this case and have TestNG exit
with an error message and an error code.

--
Cedric

On 6/20/06, Alexandru Popescu <the.mindstorm.mailingl...@gmail.com> wrote:

--
Cédric

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google