How can you depend on test code from another module in Maven?
Example, I have 2 modules:
I would like a test case in Main to extend a base test class ... |
Ok, so I'm getting a little annoyed with Maven 2 right now. The project setup we've got is simple: A "core" project, which is depended on by both a "batch" ... |
I use nested classes for accessing private members in JUnit tests. They are alaways named "TestProxy".
I would like to remove them at Build time using maven2, to not include it ... |
We have a hundreds of tests defined for our integration-test phase lifecycle in maven, and they take a long time to finish.
What I want to do is run just one test ... |
As part of my current project I've created a custom class loader. Part of the unit tests for the custom loader involves using some JAR files to demonstrate the proper behavior ... |
How do you build a Maven project without running unit tests?
Currently restructuring some code I have for a Servlet and would like to try it out in my web browser (which ... |
I know you can run all the tests in a certain class using:
mvn test -Dtest=classname
But I want to run an individual method and -Dtest=classname.methodname doesn't seem to work.
Thanks
-Bill
|
|
Is there a simple way to not build the test classes?
mvn clean install -Dmaven.test.skip=true
Walter
|
I have a simple Maven2 project with tests written for TestNG. When I say mvn test Maven2 compiles my test, but don't run them. I already checked this page: |
I'm making use of my pom.xml and am was able to generate the jar for src/main/java (say app.jar) as well as for src/test/java (say app-test.jar). I was also able to include ... |
I have several testng test groups, e.g. group1,group2,group3...
These are defined in my pom.xml and all get run when I execute "mvn test". What do I need to run to only ... |
I have a maven project that converts text files of a specific format to another format.
For testing I have put in src/test/resources a large amount of test files.
I also have ... |
I have a maven mantained project with some modules .
One module contains one XML file and one parsing class.
Second module depends on the first module.
There is a class that calls the ... |
I want to unit test the javascript I have embedded in the webapp portion of my liftweb project. Liftweb is a subset of the maven webapp archetype, so my question ... |
suppose i have a project with lots of todos, some unintentionally left there, some no longer relevant, some represent future possible features etc.
i know that most IDEs can show/filter/sort them, but ... |
I am trying to build a jar using maven , this jar was build using ant.
When I run tests from maven I got an:
ERROR org.hibernate.tool.hbm2ddl.SchemaValidator could not complete schema validation
org.apache.commons.dbcp.SQLNestedException: ...
|
Actuality when i run tests they fails but i need to run them to get some .class files which are very important for my jar.
By default when test results fails , ... |
I work on a complex, multi-module maven project. One of the modules is an executable jar that implements a command-line application. I need to integration test this application. I need to ... |
i have problem with maven. When i try to compile test classes (mvn test-compile), it fails to find the tested classes used in test classes. For example class UserTest can't be ... |
I have a maven project where I am using the assembly plugin.
I typically create my artifacts by running:
mvn clean verify assembly:assembly
(I have integration tests which I want run separately to ... |
i'm trying to run a number of classes which reside in the Maven 'test' folder from the command line which i will later combine to run in a ksh script.
The issue ... |
I have two persistence.xml files, for the sake of testing:
src/main/resources/META-INF/persistence.xml
src/test/resources/META-INF/persistence.xml
How to instruct Maven to ignore the first file during testing? Now it is not ignored since OpenEJB says:
ERROR - FAIL ... ...
|
I install my maven project:
mvn clean install
Everything works fine, JAR file is created in /target directory. Now I run it again:
mvn install
Maven executes unit tests and static code analysis again. I ... |
I am working on a Maven multi-modules project. I want to build a given module and skip the unit tests to speed the process up.
I've tried the following:
mvn reactor:make -Dmake.folders=search -Dgoals=package,-DskipTests
mvn ... |
I have 2 maven projects, one for the sources: ProjSource, containing one class: Class-A.. and another one: ProjTest containing a test class for Class-A named Class-A-Test .
I want my test class ... |
I created a library in maven that can be extended by implementing some interfaces. To test the default implementation I have written some hamcrest matchers that currently live in src/test/java.
However, I ... |
Or in alternative formulation:
Are tests in TestNG assigned to a default group if no group is specified, and if yes, what is the name of that default group? (Yes, I have ... |
I've just started working on a Java project (as I usually use .net), and one of the first things that strikes me as odd is that in the Maven project there ... |
i want my lib can be used by both in src and test class.
there is a scope properties... should i do something with it?
thanks?
<dependency>
...
|
i am using maven i don't have more knowledge about maven when i am install my project then it will successfully build but when i am test my project with ... |
How do i run JBehave tests from Maven?
I have a class that extends JUnitStories which runs from my IDE.
I cant get JBehave Maven plugin to run my tests.
Can anyone point to ... |
Greetings,
Recently our dev team has moved from Ant build files to Maven for our project management and build cycle. So far I'm really happy with the results. Since I'm still getting ... |
I use Bamboo and Maven for continuous integration and running tests. Where ever scheduled/dependent maven tests run in Bamboo, it creates a new JVM. I have a huge no. of test ... |
First let me put out the structure of my tests:
- There is BaseTest(Singleton) containing a
setUp() method which runs @BeforeSuite. This setUp() method initializes MyObject which is declared as:
protected static ThreadLocal<MyObject> ... |
I've created a webapp with maven 3:
mvn archetype:generate -DgroupId=com.my.app -DartifactId=myweb-app -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false
I didn't get the src/test/java folder, so I added it. As I understand, this doesn't violate the ... |
I'd like to be able to switch the bindings for SLF4J for unit testing over to the simple version, but it seems there is no easy way to config this. Basically, ... |
I have written a REST server (in Java using RestEasy) with a unit test suite written in Scala. The test suite uses the mock server provided by RestEasy and ... |
I'm creating a program with LWJGL and Maven, and I'm writing unit tests for the graphical code. My problem is getting Maven to put the native binaries on the classpath ... |
I have two projects, A, and B. Project A depends on project B. Project B implements several JUnit tests that run properly with maven test. Project B JUnit tests also define ... |
I'm new to maven and coming from a rails background. At a high level, I want to connect to a different database if I'm running tests, running the app locally, and ... |
I'm trying to get maven 3 to run wsgen against two web service endpoints. One is a 'production' endpoint, located under src/main/java, and the other is a 'test' endpoint that is ... |
When i run a
mvn test
Maven runs all the tests successfully and then goes on a wait infinite loop
I see a java process in the task manager ... |
Currently I am doing java project using Maven. There is no problem to run using netbeans or eclips with VM option(-Djava.security.policy=security_policy.txt ) setting in the IDE.
But now i want to run ... |
If my main logic is written using java (a small daemon server), but my test cases is a bash script. How can I include the test into my maven pom.xml? so ... |
I have maven project X which depends on project Y. when I run the tests on project X, it is not able to find the test files in project Y although ... |
// i am trying to execute test cases by grouping them using testng
...
|
I'm running into issues with my project. When running in Netbeans it seems to work fine with user interaction. However when I run using mvn test it does not. I see ... |
I've changed the junit version from 3.8 to 4.4 in the application use maven 1. For that I change the project.xml, now look like this:
...
<dependency>
<groupId>junit</groupId>
...
|
Pax Exam gives a great deal of flexibility when testing a set of bundles, but as far as I understand it seems that, in a Maven project, black-box testing is not ... |
I have a standard maven project layout.
Some configuration files are stored in src/main/conf.
Now I would like to read these files in my unit test in src/test (e.g. read a properties from ... |
I have a multi-module maven project. In every module there are unit tests. When I make clean install tests run before every module and if all tests in one module are ... |
I have thousands of unit tests in my project, and I'd like to choose one or a couple of them to run from the command line. What's the command to do ... |
I have a web app project under development using Maven 2 that I want to deploy on server to be able to view the webpages for testing purposes while developing. Howver ... |
I have two sort of tests in my project. One of them is ending "Test", the other is ending with "IT".
How can i tell emma that it should take all ...
|
I'm using jbehave and the jbehave maven plugin to run a set of scenario tests.
Have my test class extending JUnitStories, and everything works nicely. Only issue is, I can't stop running ... |
I have a simple question about how to use Maven in enterprise process. After a release, my artifacts are deployed to our internal repository. Now, QA needs to start testing the ... |
|