Refactor test binary location and update sonar exclusions
Moved the test binary from "tests" to "testbin" for better organization. Updated `sonar-project.properties` to exclude the new directory from analysis and adjusted test references accordingly.
This commit is contained in:
parent
d126d4ef7a
commit
a7c6a85084
@ -99,7 +99,7 @@ func Test_PanicPlainTextLogs(t *testing.T) {
|
||||
|
||||
func Test_FatalPlainTextLogs(t *testing.T) {
|
||||
cmd := exec.Command(
|
||||
"go", "run", "./test/main.go",
|
||||
"go", "run", "./testbin/main.go",
|
||||
)
|
||||
cmd.Env = append(cmd.Env, "TEST_FATAL=1")
|
||||
|
||||
|
@ -2,7 +2,7 @@ sonar.projectKey=b97a45b2-c25d-4fd1-898d-136414896ce6
|
||||
sonar.projectName=mother-utils/motherlog
|
||||
sonar.language=go
|
||||
sonar.sources=.
|
||||
sonar.exclusions=**/*_test.go
|
||||
sonar.exclusions=**/*_test.go, testbin/**
|
||||
sonar.tests=.
|
||||
sonar.test.inclusions=**/*_test.go
|
||||
sonar.go.tests.reportPaths=test-report.out
|
||||
|
Loading…
x
Reference in New Issue
Block a user