com.lesfurets.jenkins.unit.RegressionTest.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jenkins-pipeline-unit Show documentation
Show all versions of jenkins-pipeline-unit Show documentation
Jenkins Pipeline Unit testing framework
package com.lesfurets.jenkins.unit
trait RegressionTest {
String callStackPath = "src/test/resources/callstacks/"
/**
* Checks the current callstack is the same as the reference callstack.
* The reference callstack can be updated into a txt file in the callStackPath
*
* Pattern: /<_subname>.txt
* @param subname optional subname, used in the reference callstack filename
* @param writeReference true to update the reference callstack
*/
void testNonRegression(String subname = '', boolean writeReference) {
String targetFileName = "${callStackPath}${this.class.simpleName}"
if (subname) {
targetFileName += "_${subname}"
}
RegressionTestHelper.testNonRegression(helper, targetFileName, writeReference)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy