refactor: migrate e2e tests from efficientgo/e2e to capytest

This commit is contained in:
2025-07-05 20:31:43 +03:00
parent 5e24940ef8
commit 9d6a414a99
23 changed files with 174 additions and 319 deletions

View File

@ -20,24 +20,15 @@ package e2etests_test
import (
"testing"
"time"
"github.com/efficientgo/e2e"
expect "github.com/tailscale/goexpect"
"go.alt-gnome.ru/capytest"
)
func TestE2EAlrFix(t *testing.T) {
dockerMultipleRun(
t,
"run-fix",
COMMON_SYSTEMS,
func(t *testing.T, r e2e.Runnable) {
runTestCommands(t, r, time.Second*30, []expect.Batcher{
&expect.BSnd{S: "alr fix\n"},
&expect.BExp{R: `--> Done`},
&expect.BSnd{S: "echo $?\n"},
&expect.BExp{R: `^0\n$`},
})
},
)
runMatrixSuite(t, "run-fix", COMMON_SYSTEMS, func(t *testing.T, r capytest.Runner) {
r.Command("alr", "fix").
ExpectStderrContains("--> Done").
ExpectSuccess().
Run(t)
})
}