[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
I love this place!
Sean Clark wrote:My suggestion is to keep with the standard structure for a maven project (see here).
Sean Clark wrote:In answer to your question 2, you can have your app deployed to the server during the maven build and then run your tests against it all within maven.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sagar Rohankar wrote:Sean, I'm not changing the standard dir structure. I'm just want to decide where to keep web tests "src/main/java" or "src/test/java"?
Sagar Rohankar wrote:yeah, right; but this looks great if my web tests are in same maven project and not located somewhere in dedicated web test project.
I love this place!
Marcin Kwiatkowski wrote:Also why would you ever need to write unit tests for selenium tests?
Marcin Kwiatkowski wrote:The way I've done it in the past is using something like "src/acceptance-test/java", but that requires some adjustments in your build script and ide.
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sean Clark wrote:
You're splitting hairs here, you are wanting to use a standard application code folder to store tests, you are changing what that folder does and therefore I think you are changing the standard directory structure.Sagar Rohankar wrote:Sean, I'm not changing the standard dir structure. I'm just want to decide where to keep web tests "src/main/java" or "src/test/java"?
Sean Clark wrote:
You would need to configure maven not to pick up your web tests otherwise you would end up with them in your WAR file.
Sean Clark wrote:
Sagar Rohankar wrote:yeah, right; but this looks great if my web tests are in same maven project and not located somewhere in dedicated web test project.
If you want to include the tests in another project then you could do that through maven by adding a dependency to your main projects test classes jar (you need to configure it to create a jar for the tests.)
[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |