Skip to content

Commit

Permalink
resources: Skip the image golden tests when running locally
Browse files Browse the repository at this point in the history
See #12119
  • Loading branch information
bep committed Feb 23, 2024
1 parent 554aa58 commit c4fe45f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/image_test.go
Expand Up @@ -30,6 +30,7 @@ import (
"testing"
"time"

"github.com/gohugoio/hugo/htesting"
"github.com/gohugoio/hugo/resources/images/webp"

"github.com/gohugoio/hugo/common/paths"
Expand Down Expand Up @@ -545,6 +546,9 @@ func goldenEqual(img1, img2 *image.NRGBA) bool {

// Issue #8729
func TestImageOperationsGoldenWebp(t *testing.T) {
if !htesting.IsCI() {
t.Skip("skip long running test in local mode")
}
if !webp.Supports() {
t.Skip("skip webp test")
}
Expand Down Expand Up @@ -584,6 +588,9 @@ func TestImageOperationsGoldenWebp(t *testing.T) {
}

func TestImageOperationsGolden(t *testing.T) {
if !htesting.IsCI() {
t.Skip("skip long running test in local mode")
}
c := qt.New(t)
c.Parallel()

Expand Down

0 comments on commit c4fe45f

Please sign in to comment.