All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lesfurets.jenkins.unit.RegressionTest.groovy Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
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