eu.lindenbaum.maven.erlang
Class ProfilingScript
java.lang.Object
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
| Fields inherited from interface eu.lindenbaum.maven.erlang.Script |
NL |
|
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 |
script
protected final String script
ProfilingScript
public ProfilingScript(List<File> tests,
File profilingReportsDir,
String profilingReportName,
int timeout)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
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 © 2011 Lindenbaum GmbH. All Rights Reserved.