mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
chore: fold integration test outputs (#1111)
To make the test logs more readable, we should fold the output per test into a group. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
8974ceab7e
commit
475a39af46
3 changed files with 12 additions and 0 deletions
|
@ -70,6 +70,8 @@ type TestJobFileInfo struct {
|
|||
}
|
||||
|
||||
func (j *TestJobFileInfo) runTest(ctx context.Context, t *testing.T, cfg *Config) {
|
||||
fmt.Printf("::group::%s\n", j.workflowPath)
|
||||
|
||||
log.SetLevel(logLevel)
|
||||
|
||||
workdir, err := filepath.Abs(j.workdir)
|
||||
|
@ -103,6 +105,8 @@ func (j *TestJobFileInfo) runTest(ctx context.Context, t *testing.T, cfg *Config
|
|||
} else {
|
||||
assert.Error(t, err, j.errorMessage)
|
||||
}
|
||||
|
||||
fmt.Println("::endgroup::")
|
||||
}
|
||||
|
||||
func TestRunEvent(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue