Request A Demo
Back to All Blog Articles

FlexDeploy JUnit Test Results from Maven

Many organizations have invested in Maven, Ant and other tools to automate build and test executions. FlexDeploy supports native integration to perform Build and Execute Tests, but it also allows for taking advantage of existing investments in Maven, Ant, etc. In this blog post, I will talk about how to pull in JUnit Test Results from Maven execution, but keep in mind that this option opens up many possibilities for FlexDeploy users.

I will use JUnit Maven Example blog entry to showcase FlexDeploy capabilities.

FlexDeploy executes test cases using Test Definition workflow and as always FlexDeploy workflows are very easy to create with out of box plugins support. In this case, I have created a workflow to execute test phase of maven using Maven plugin. This workflow is associated with FlexDeploy Project similar to build and deploy workflows.

Let’s talk about Build workflow now. For build we will first get source code from SCM which is easy by using SCM-ExportSource workflow which is bundled in FlexDeploy, then run Tests using Invoke Tests operation and at the end run Maven package & capture artifacts.

Now when you execute Build on FlexDeploy Project, you will see Test results on execution screen.

Similar to Maven, Ant can also be used to execute Tests and results can be pulled in to FlexDeploy. If you have other test tools that are not supported out of box by FlexDeploy, you can write your own plugins using FlexDeploy Plugin SDK.

 

Related Resources

Mastering Source Control: Streamlining Functional Setup Data Sync with FlexDeploy and Git Integration in Oracle FSM

Effective source control management (SCM) is pivotal in ensuring the seamless tracking and management of functional setup data. In this ...

New in 7.0: Release Work Items

Work item tracking tools play a crucial role in the DevOps process, helping teams plan new features, resolve bugs efficiently, ...

Analyze Source Code Using PMD in FlexDeploy

PMD is a static source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object ...

Join DevOps leaders across the globe who receive analysis, tips, and trends in their inbox