WELCOME Abdennour : Software engineer

Apr 17, 2012

How to install Mockito to do TDD(Test Driven Development ) (with Eclipse)



Eclipse Plugins:
1-MoreUnit : 
   >> interest of Use: 
               a.It allows to manage tests by keyboard shortcuts (Ctrl + R = run the     test;    Ctrl + J = Jump) .
               b.drew a diagram of tests (failed, success, improved) [PULSE]
   >>How install it :
                a. Help>Install new Software>
                 b. put this URL link in "Work With" "http://moreunit.sourceforge.net/update-site/"
2-Infinitest : 
     >> interest of Use: 
               .it is a black bar at the bottom of the editor. it makes the automatic launching test.


   >>How install it :
                a. Help>Install new Software>
                 b. put this URL link in "Work With" "http://infinitest.github.com/"
3-Eclemma :
       >> interest of Use: 
               .it is a test coverage


   >>How install it :
                a. Help>Install new Software>
                 b. put this URL link in "Work With" "http://update.eclemma.org/"


Maven Dependencies:
-We have 4 dependencies :
<dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                        <version>3.8.1</version>
                        <scope>test</scope>
 </dependency>


  <dependency>
                        <groupId>junit</groupId>
                        <artifactId>junit-dep</artifactId>
                        <version>4.10</version>
                        <scope>test</scope>

 </dependency>

  <dependency>
                        <groupId>org.hamcrest</groupId>
                        <artifactId>hamcrest-all</artifactId>
                        <version>1.1</version>
                        <scope>test</scope>
  </dependency>


   <dependency>
                        <groupId>org.mockito</groupId>
                        <artifactId>mockito-all</artifactId>
                        <version>1.9.0</version>
                        <scope>test</scope>
    </dependency>


No comments:

Post a Comment