mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Optimize the multilanguage build process
Work In Progress! This commit makes a rework of the build and rebuild process to better suit a multi-site setup. This also includes a complete overhaul of the site tests. Previous these were a messy mix that were testing just small parts of the build chain, some of it testing code-paths not even used in "real life". Now all tests that depends on a built site follows the same and real production code path. See #2309 Closes #2211 Closes #477 Closes #1744
This commit is contained in:
@@ -56,8 +56,8 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
|
||||
templ := tpl.New()
|
||||
p, _ := pageFromString(simplePageWithURL, path)
|
||||
p.Node.Site = &SiteInfo{
|
||||
AllPages: &(Pages{p}),
|
||||
BaseURL: template.URL(helpers.SanitizeURLKeepTrailingSlash(baseURL)),
|
||||
rawAllPages: &(Pages{p}),
|
||||
BaseURL: template.URL(helpers.SanitizeURLKeepTrailingSlash(baseURL)),
|
||||
}
|
||||
|
||||
output, err := HandleShortcodes(in, p, templ)
|
||||
@@ -72,8 +72,7 @@ func doTestShortcodeCrossrefs(t *testing.T, relative bool) {
|
||||
}
|
||||
|
||||
func TestShortcodeHighlight(t *testing.T) {
|
||||
viper.Reset()
|
||||
defer viper.Reset()
|
||||
testCommonResetState()
|
||||
|
||||
if !helpers.HasPygments() {
|
||||
t.Skip("Skip test as Pygments is not installed")
|
||||
|
Reference in New Issue
Block a user