]> git.maquefel.me Git - brevno-suite/hugo/commit
Port some integration tests to new test setup
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Jan 2024 10:14:35 +0000 (11:14 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 28 Jan 2024 10:29:23 +0000 (11:29 +0100)
commit50dc327d1aa52a785382468aaf5a5f9cae456dbf
tree6a86e67a2e83f7a5e5ecd70ae93e83468b0253c6
parent7285e74090852b5d52f25e577850fa75f4aa8573
Port some integration tests to new test setup

The method I'm currently using (if other want to help) is:

* Add fmt.Println(b.DumpTxtar()) after the Build step
* Add that to a files var and pass that to Test(t, files) or similar
* Then, if possible, try to reduce the files/content down to what's needed in test.

Note that if the test is small, it's probably faster just to manually re-create the test.
hugolib/hugo_modules_test.go