mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
de2909e64b
* add static code checks for maven based projects as: * pmd plugin * spotBugs plugin * test modules as unit-tests and integration-tests will be ignored by default. Additional modules to ignore are configurable * for pmd: rulesets and excludes are configurable * for spotBugs: includeFilter and excludeFilter are configurable
17 lines
346 B
Go
17 lines
346 B
Go
package cmd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestMavenStaticCodeChecksCommand(t *testing.T) {
|
|
|
|
testCmd := MavenStaticCodeChecksCommand()
|
|
|
|
// only high level testing performed - details are tested in step generation procudure
|
|
assert.Equal(t, "mavenStaticCodeChecks", testCmd.Use, "command name incorrect")
|
|
|
|
}
|