t.Skip("skip (relative) long running modules test when running locally")
}
- if runtime.GOOS == "windows" {
- t.Skip("skip NPM test on Windows")
- }
-
wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
"bytes"
"os"
"path/filepath"
- "runtime"
"testing"
"github.com/gohugoio/hugo/common/hexec"
t.Skip("skip (relative) long running modules test when running locally")
}
- if runtime.GOOS == "windows" {
- t.Skip("skip npm test on Windows")
- }
-
wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
"github.com/gohugoio/hugo/resources/resource_transformers/tocss/dartsass"
"path/filepath"
- "runtime"
"strings"
"testing"
"time"
t.Skip("skip (relative) long running modules test when running locally")
}
- if runtime.GOOS == "windows" {
- t.Skip("skip npm test on Windows")
- }
-
wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
// Make sure Node sees this.
b.Assert(logBuf.String(), qt.Contains, "Hugo Environment: production")
- b.Assert(logBuf.String(), qt.Contains, fmt.Sprintf("PostCSS Config File: %s/postcss.config.js", workDir))
- b.Assert(logBuf.String(), qt.Contains, fmt.Sprintf("package.json: %s/package.json", workDir))
+ b.Assert(logBuf.String(), qt.Contains, filepath.FromSlash(fmt.Sprintf("PostCSS Config File: %s/postcss.config.js", workDir)))
+ b.Assert(logBuf.String(), qt.Contains, filepath.FromSlash(fmt.Sprintf("package.json: %s/package.json", workDir)))
b.AssertFileContent("public/index.html", `
Styles RelPermalink: /css/styles.css