Applying Maven/JUnit to build applications with Ptolemy II

Download Report

Transcript Applying Maven/JUnit to build applications with Ptolemy II

« Applying Maven/JUnit to build applications
with Ptolemy II » , Xavier Warzee, Valtech
• How to control quality during the
development ?
– Build often, Test often, Stress often
– Need to automate this process with a possible
distributed platform
– Need reports and dashboards
• Maven : a build framework
– Ability to reuse existing services
• More than 100 existing Maven plugins (jar,
cactus, clover, jira, site, dashboard, etc)
– Easy to start with
• All working, just need to configure and extend
• Building Ptolemy 4.01. with Maven &
Building Vergil with Maven
– Building Ptolemy with maven site generating
• Jar artifact
• Reports
–
–
Testing Reports : JUnit plugin
Quality Reports : Checkstyle, PMD, Findbugs, JCoverage,
JDepend plugin, Ncss, Simian, PatterTesting plugins
• Dashboard
– Build Vergil with maven javaapp
• Java application generation
• META-INF/MANIFEST.MF generated
• Ptolemy II built with Maven
– Ability to benefit from new services simply by
upgrading
– Well-defined and shared structure/architecture
– Easier to maintain
• Knowledgeable resources on the market
• Well-defined structure
– It makes sense to use a custom approach
when flexibility is a must
• This is not usually the case for builds
• Fourier Series Application testing under
Vergil
– When the trainingMode is set to false, if the
order parameter of the FFT is modified from 5
to 4, an exception is raised !
• Develop a Ptolemy Actor or a Ptolemy
Application with the Java API
• Develop Tests of the Actor/App with JUnit