• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Project Structure

 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a java project that consists of source code, resources, unit tests, and system tests,

What is the best approach to the project structure for these?

Thanks,

Niall
 
E Armitage
Rancher
Posts: 989
9
 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

but http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html doesn't include system tests?
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly are these system tests and why can't they do under src/test/java?
 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your reply,

I know that this topic may be a question where there is no answer like a question which is better the number 6 or half a dozen :)

the reason why system tests arent good to have in src/test/java is that this is for unit test coverage on the code itself where system tests are system integration tests that arent used in the code coverage but used for testing on the system, so its not good to mix the unit tests with the system tests,

is there any recommended way to have the project structure for this?

Thanks,

Niall
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When and how are the system tests run?
 
Niall Loughnane
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The system tests are ran manually,

They are system integration tests or applications that are used for manual applications,

Thanks,

Niall
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maven can distinguish between integration tests through the maven-failsafe-plugin plugin.
Here is one way to do it:http://java.dzone.com/articles/separating-integration-and
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic