Yes 'cause my test class is AdapterTest.java I have to add some specific plugin ??
Plugin i've added to project are : <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>was6-maven-plugin</artifactId> <version>1.1.2</version> <executions> <execution> <goals> <goal>ejbdeploy</goal> </goals> </execution> </executions> <configuration> <wasHome>${was61.home}</wasHome> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-ejb-plugin</artifactId> <version>2.3</version> <configuration> <ejbVersion>2.1</ejbVersion> <generateClient>true</generateClient> <archive> <manifest> <addClasspath>true</addClasspath> </manifest> <index>false</index> <addMavenDescriptor>false</addMavenDescriptor> </archive> </configuration> </plugin> thk a lot Date: Fri, 15 Jul 2011 07:05:39 -0700 From: ml-node+4590805-1772571158-230...@n5.nabble.com To: chiara_sime...@hotmail.it Subject: Re: Error running Maven Tests with powermock and junit Does your class containing the tests matches the default include patterns? http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#includes <includes> <include>**/Test*.java</include> <include>**/*Test.java</include> <include>**/*TestCase.java</include> </includes> Guillaume Le 15/07/2011 15:51, Greg Akins a écrit : > On Fri, Jul 15, 2011 at 9:44 AM, Chiara<[hidden email]> wrote: >> Hi, yes i've put all test under this folder. >> I don't know what to do seriously.. 'cause if i try to run test using run as >> junit tests it works.. > So the only change you make.. after the JUnit tests run, is to add the > @RunWith(PowerMockRunner.class) attribute? > > And then the tests are not recognized? > --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] If you reply to this email, your message will be added to the discussion below: http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590805.html To unsubscribe from Error running Maven Tests with powermock and junit, click here. -- View this message in context: http://maven.40175.n5.nabble.com/Error-running-Maven-Tests-with-powermock-and-junit-tp4590673p4590845.html Sent from the Maven - Users mailing list archive at Nabble.com.