mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
test(e2e): introduce e2e test framework with local forgejo
This commit is contained in:
parent
0402085767
commit
17ea9b6cf5
9 changed files with 336 additions and 1 deletions
19
test/e2e/forge.go
Normal file
19
test/e2e/forge.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package e2e
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
)
|
||||
|
||||
type TestForge interface {
|
||||
Init(ctx context.Context, runID string) error
|
||||
CreateRepo(t *testing.T, opts CreateRepoOpts) (*Repository, error)
|
||||
|
||||
RunArguments() []string
|
||||
}
|
||||
|
||||
type CreateRepoOpts struct {
|
||||
Name string
|
||||
Description string
|
||||
DefaultBranch string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue