jetbrains.buildServer.serverSide
Interface FailedTestOutputFormatter

All Superinterfaces:
ServerExtension, TeamCityExtension

public interface FailedTestOutputFormatter
extends ServerExtension

Extension point for providing new logics for test's stacktrace formatting.


Method Summary
 boolean canFormat(SBuild build, FailedTestOutputBean bean)
          Returns true if the specified test output can be formatted by this extension and false otherwise
 java.lang.String formatTestForWeb(SBuild build, int testId, FailedTestOutputBean bean)
          Formats test output.
 

Method Detail

formatTestForWeb

java.lang.String formatTestForWeb(@NotNull
                                  SBuild build,
                                  int testId,
                                  @NotNull
                                  FailedTestOutputBean bean)
Formats test output.

Parameters:
build - build
testId - current test id
bean - failed test info bean
Returns:
string to be returned as the test's stacktrace.

canFormat

boolean canFormat(@NotNull
                  SBuild build,
                  @NotNull
                  FailedTestOutputBean bean)
Returns true if the specified test output can be formatted by this extension and false otherwise

Parameters:
build - build
bean - failed test info bean
Returns:
see above