rchillyard / The-repository-formerly-known-as

2 stars 12 forks source link

Created maven profiles to consider the respective configuration for u… #39

Closed bhusareakshay closed 4 years ago

bhusareakshay commented 4 years ago

…nit and integration tests as per the profile specified while running maven commands. By default "dev" profile is considered which runs only unit tests. Also added my processor speed.

rchillyard commented 4 years ago

This is great. In order to specify profile, users need to use the "-P" option. For example, I just ran: mvn test -P integration-test

rchillyard commented 4 years ago

Strangely, it seems that when I run explicitly in terminal, e.g. mvn test -P integration-test it runs a little slower than running the same tests using IDEA as the test runner. Any ideas how we can pick a particular profile for IDEA to use? OK, I've figured it out. You need a profiles.xml file. I will post one here.

rchillyard commented 4 years ago

I've added the profiles.xml file but now I'm not so sure that it works the way I thought. Anyway, I think we need one.