runner icon indicating copy to clipboard operation
runner copied to clipboard

Nested `Describe` are not presented correctly in test output panel

Open hobovsky opened this issue 4 years ago • 1 comments

Test output panel does not present correctly nested Describe groups.

To Reproduce

Run following tests:

Describe(Outer_Group)
{
  Describe(Inner_Group) {
    It(should_do_something)
    {
        Assert::That("some value", Equals("another value"));
    }
  };
};

Kumite: https://www.codewars.com/kumite/6082b04e8843ad0032489920

Expected behavior

Both Outer_Group and Inner_Group should be present in test output panel.

Screenshots

image

Browser

Opera, Win 10

hobovsky avatar Apr 23 '21 11:04 hobovsky

I might be misunderstanding, but I don't think Igloo allows reporting the nested context (Describe). The test listener receives a context with only the name set. There's no way to get the parent context.

https://github.com/codewars/igloo/blob/9c98bc7c47c423f2c5d18c0d3c35d63f6f545a85/igloo/core/contextregistry.h#L87

kazk avatar Apr 23 '21 23:04 kazk