Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [eclipse-dev] change in junit plugin

Emerson,

  There us an easy way to do this.  When writing a test, do the following.

...
public class MyTestCase extends TestCase
{
  ...
  public void testSomething()
  {
     fail("this test needs to be implemented");
  }
}

  - Matt

-----Original Message-----
From: eclipse-dev-admin@xxxxxxxxxxx
[mailto:eclipse-dev-admin@xxxxxxxxxxx]On Behalf Of Emerson Cargnin -
SICREDI Serviços
Sent: Wednesday, October 16, 2002 5:32 PM
To: eclipse-dev@xxxxxxxxxxx
Subject: [eclipse-dev] change in junit plugin


What about change the way junit test cases are created?
the problem is that it creates one test for each method of the chosen
class and the methods are empty. When the tests are executed, even for
not implemented yet methods it gives success. It could be insert a :

<code>throw new Exception ("Test not implemented yet ");</code>

This way the tests not implemented will be visible to the tests results.



--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
| Emerson Cargnin          |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959    |
| SICREDI Serviços         |
| Porto Alegre - Brasil    |
|xxxxxxxxxxxxxxxxxxxxxxxxxx|


_______________________________________________
eclipse-dev mailing list
eclipse-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/eclipse-dev



Back to the top