Package com._1c.g5.v8.dt.testing.compare
Class AbstractCompareMergePerformanceTestCase
- java.lang.Object
-
- com._1c.g5.v8.dt.testing.compare.AbstractCompareMergePerformanceTestCase
-
public abstract class AbstractCompareMergePerformanceTestCase extends Object
General logic of performance tests for compare/merge.
-
-
Field Summary
Fields Modifier and Type Field Description TestingWorkspace
testingWorkspace
org.junit.rules.TestName
testName
-
Constructor Summary
Constructors Constructor Description AbstractCompareMergePerformanceTestCase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
runTest(String repoName, String mainCommitId, String otherCommitId, String projectName, int runComparisonTimes, ResourcesConsumption expectedResourcesConsumption)
Runs performance testing of compare and merge processes on two commits from the given Git repository.void
setUp()
void
tearDown()
-
-
-
Field Detail
-
testingWorkspace
public TestingWorkspace testingWorkspace
-
testName
public org.junit.rules.TestName testName
-
-
Method Detail
-
setUp
public void setUp()
-
tearDown
public void tearDown()
-
runTest
protected void runTest(String repoName, String mainCommitId, String otherCommitId, String projectName, int runComparisonTimes, ResourcesConsumption expectedResourcesConsumption) throws Exception
Runs performance testing of compare and merge processes on two commits from the given Git repository.- Parameters:
repoName
- the repository name, cannot benull
mainCommitId
- Commit ID for main side, cannot benull
otherCommitId
- Commit ID for other side, cannot benull
projectName
- the name of the project in the repository, cannot benull
runComparisonTimes
- how many times to run comparison to calculate average resources consumption, the more is betterexpectedResourcesConsumption
- the expected resources consumption, cannot benull
- Throws:
Exception
- if some problem occurred
-
-