Jump to content

Java app testingggg deploymenttt strategy


Recommended Posts

Posted

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)

Posted

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> 

Posted
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...