Refactor test binary location and update sonar exclusions
All checks were successful
Go CI/CD / go-ci (push) Successful in 10m8s
Go CI/CD / go-ci (pull_request) Successful in 10m12s

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:
Rene Nochebuena 2025-04-10 10:57:51 -06:00
parent d126d4ef7a
commit a7c6a85084
Signed by: Rene Nochebuena
GPG Key ID: A9FD83117EA538D8
3 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ func Test_PanicPlainTextLogs(t *testing.T) {
func Test_FatalPlainTextLogs(t *testing.T) { func Test_FatalPlainTextLogs(t *testing.T) {
cmd := exec.Command( cmd := exec.Command(
"go", "run", "./test/main.go", "go", "run", "./testbin/main.go",
) )
cmd.Env = append(cmd.Env, "TEST_FATAL=1") cmd.Env = append(cmd.Env, "TEST_FATAL=1")

View File

@ -2,7 +2,7 @@ sonar.projectKey=b97a45b2-c25d-4fd1-898d-136414896ce6
sonar.projectName=mother-utils/motherlog sonar.projectName=mother-utils/motherlog
sonar.language=go sonar.language=go
sonar.sources=. sonar.sources=.
sonar.exclusions=**/*_test.go sonar.exclusions=**/*_test.go, testbin/**
sonar.tests=. sonar.tests=.
sonar.test.inclusions=**/*_test.go sonar.test.inclusions=**/*_test.go
sonar.go.tests.reportPaths=test-report.out sonar.go.tests.reportPaths=test-report.out