Skip to content

Nested describe blocks not printed #10

@kfatehi

Description

@kfatehi

Example tests:

describe("POST /session", function () {
  it("rejects invalid credentials")

  describe("local auth provider", function() {
    it("returns a new auth token")
  });
});

I am currently using the HTML reporter. When I generate samples, I see the following:

Notice now that the "it" label "rejects invalid credentials" is there as the sample description and it looks good.

The problem comes in when you begin nesting describe blocks semantically ought to be a part of the sample description.

Hence my expectation here is that rather than see "returns a new auth token" I should see "local auth provider returns a new auth token"

Just to give a little more context, my next test describes "github auth provider" with similar assertions, so things get confusing. Is there a simple way to bring in that additional "describe" context as part of the sample description?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions