diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-09 13:41:04 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-02-09 15:41:32 +0100 |
commit | 64f75adcf6cf44fafeea7e4d00d8d05d951931e6 (patch) | |
tree | 4681023c300b7ea309301fc1f34db3a207c60f47 /hugolib/site.go | |
parent | 9262719092d6ec8e034c7a097575defe8611dadb (diff) |
Add a new integration test framework
I have had this living in a separate branch for now, but we need this in the main branch sooner rather than later.
One big advantage of this is that integration tests can live in any package, not just hugolib.
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 13d5482b1..02380a6e7 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1719,6 +1719,7 @@ func (s *Site) renderAndWriteXML(statCounter *uint64, name string, targetPath st func (s *Site) renderAndWritePage(statCounter *uint64, name string, targetPath string, p *pageState, templ tpl.Template) error { s.Log.Debugf("Render %s to %q", name, targetPath) + s.h.IncrPageRender() renderBuffer := bp.GetBuffer() defer bp.PutBuffer(renderBuffer) |