Skip to content

Run "hugo server" deterministically in integration tests #9421

Open
@ptgott

Description

@ptgott

There is currently one integration test that makes assertions against a running Hugo server started via the hugo server (the other tests in server_test.go do not run cmd.ExecuteC()). This test waits for the server to be ready via time.Sleep.

As mentioned in this comment, let's find a way to make awaiting server readiness more deterministic in integration tests. There are a number of outstanding server-related issues, so this will allow us to write more integration tests for the server command without unnecessary sleeping and with more reproducible results between compute environments (e.g., CI pipeline containers).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions