github.com/onsi/ginkgo@v1.16.6-0.20211118180735-4e1925ba4c95/integration/_fixtures/progress_fixture/progress_fixture_test.go (about)

     1  package progress_fixture_test
     2  
     3  import (
     4  	"fmt"
     5  
     6  	. "github.com/onsi/ginkgo"
     7  )
     8  
     9  var _ = Describe("ProgressFixture", func() {
    10  	BeforeEach(func() {
    11  		fmt.Fprintln(GinkgoWriter, ">outer before<")
    12  	})
    13  
    14  	JustBeforeEach(func() {
    15  		fmt.Fprintln(GinkgoWriter, ">outer just before<")
    16  	})
    17  
    18  	AfterEach(func() {
    19  		fmt.Fprintln(GinkgoWriter, ">outer after<")
    20  	})
    21  
    22  	Context("Inner Context", func() {
    23  		BeforeEach(func() {
    24  			fmt.Fprintln(GinkgoWriter, ">inner before<")
    25  		})
    26  
    27  		JustBeforeEach(func() {
    28  			fmt.Fprintln(GinkgoWriter, ">inner just before<")
    29  		})
    30  
    31  		AfterEach(func() {
    32  			fmt.Fprintln(GinkgoWriter, ">inner after<")
    33  		})
    34  
    35  		When("Inner When", func() {
    36  			BeforeEach(func() {
    37  				fmt.Fprintln(GinkgoWriter, ">inner before<")
    38  			})
    39  
    40  			It("should emit progress as it goes", func() {
    41  				fmt.Fprintln(GinkgoWriter, ">it<")
    42  			})
    43  		})
    44  	})
    45  
    46  	Specify("should emit progress as it goes", func() {
    47  		fmt.Fprintln(GinkgoWriter, ">specify<")
    48  	})
    49  })