IdeaGinkgo / Intellij-Ginkgo

Idea plugin for running and viewing ginkgo tests
GNU General Public License v3.0
34 stars 13 forks source link

Improve focus test expression generation #2

Closed TaylorOno closed 3 years ago

TaylorOno commented 3 years ago

The focus test expression should be the full test description just not just the leaf node.

Describe("loading from JSON", func() {
    Context("when the JSON parses successfully", func() {
        It("should populate the fields correctly", func() {
            Expect(book.Title).To(Equal("Les Miserables"))
         })
     })
})

Will: Generate the focus expression "should populate the fields correctly" Should: Generate the focus expression "loading from JSON when the JSON parses successfully should populate the fields correctly"