LungiLingaraju Posted June 26, 2019 Report Posted June 26, 2019 What strategy do you follow for deployment the unit test cases to production ? I want to write but don’t want to commit to prod ... do you maintain separate branches for unit test cases and code(same code without unit test cases) Quote
Run Posted June 26, 2019 Report Posted June 26, 2019 maven plugin lo exclude the unit tests while creating jar/war file something like this <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <excludes> <exclude>**/Test*.java</exclude> </excludes> </configuration> </plugin> Quote
Run Posted June 26, 2019 Report Posted June 26, 2019 6 minutes ago, LungiLingaraju said: What strategy do you follow for deployment the unit test cases to production ? I want to write but don’t want to commit to prod ... do you maintain separate branches for unit test cases and code(same code without unit test cases) by prod you mean master branch ? you commit unit tests to master branch as well.. unitests are need to test your software...both uni tests and code will be in same repo as part of same project... these will be executed before you build your war/jar file...but you dont need to include test classes in jar/war Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.