eu.lindenbaum.maven.erlang
Class ProfilingScript

java.lang.Object
  extended by eu.lindenbaum.maven.erlang.ProfilingScript
All Implemented Interfaces:
Script<ProfilingResult>

public class ProfilingScript
extends Object

A Script that executing and profiles a list of (eunit) tests using eprof.

Since:
2.1.0
Author:
Olle Törnström

Field Summary
protected  String script
           
 
Fields inherited from interface eu.lindenbaum.maven.erlang.Script
NL
 
Constructor Summary
ProfilingScript(List<File> tests, File profilingReportsDir, String profilingReportName, int timeout)
           
 
Method Summary
 String get()
          Returns an evaluateable String containing the erlang script of the implementing class.
 ProfilingResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
          Converts the result of the Script execution into an object capable of logging the test output as well as returning whether the profiled unit test execution succeeded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

script

protected final String script
Constructor Detail

ProfilingScript

public ProfilingScript(List<File> tests,
                       File profilingReportsDir,
                       String profilingReportName,
                       int timeout)
                throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException
Method Detail

get

public String get()
Description copied from interface: Script
Returns an evaluateable String containing the erlang script of the implementing class.

Returns:
An erlang script that can be evaluated.

handle

public ProfilingResult handle(com.ericsson.otp.erlang.OtpErlangObject result)
Converts the result of the Script execution into an object capable of logging the test output as well as returning whether the profiled unit test execution succeeded.

Parameters:
result - The return term of the Script execution.
Returns:
An object capable of delivering the results transparently.


Copyright © 2012 Lindenbaum GmbH. All Rights Reserved.