diff --git a/README.md b/README.md index 9f18001..3e8bfe1 100644 --- a/README.md +++ b/README.md @@ -355,9 +355,11 @@ func TestMain(m *testing.M) { Options: &opts, }.Run() + // Optional: Run `testing` package's logic besides godog. if st := m.Run(); st > status { status = st } + os.Exit(status) } ``` @@ -386,9 +388,11 @@ func TestMain(m *testing.M) { Options: &opts, }.Run() + // Optional: Run `testing` package's logic besides godog. if st := m.Run(); st > status { status = st } + os.Exit(status) } ``` @@ -417,9 +421,11 @@ func TestMain(m *testing.M) { Options: &opts, }.Run() + // Optional: Run `testing` package's logic besides godog. if st := m.Run(); st > status { status = st } + os.Exit(status) } ```