mkutz/Shakespeare

Slf4jReporter does not clear its root report causing duplicate reports

mkutz opened this issue · 0 comments

mkutz commented

The Slf4jReporter does not seem to clear its currentRootReport when it was logged. Due to that reports are being re-logged in later reports.

Example:

09:18:21.444 [Test worker] INFO  Romeo - Romeo does Register[emailAddress=EmailAddress[address=romeo-6196066116236034475@shakespeareframework.org]] ✓ 16s
├── Romeo does EnterAddress[address=Address[firstName=Romeo, lastName=Montague, company=Montague Ltd., addressLine1=515 W Verona Ave, addressLine2=, city=Verona, state=Wisconsin, zipCode=53593, homePhone=(202) 762-1401, mobilePhone=, addressAlias=Home]] ✓ 1s69ms
├── Romeo does EnterPersonalInformation[personalInformation=PersonalInformation[title=MR, firstName=Romeo, lastName=Montague, password=jul13t, dateOfBirth=1999-02-14]] ✓ 2s973ms
├── Romeo does StartRegistration[emailAddress=EmailAddress[address=romeo-6196066116236034475@shakespeareframework.org]] ✓ 309ms
├── Romeo does NavigateToSignInPage[] ✓ 2s263ms
└── Romeo does SubmitRegisterForm[] ✓ 2s282ms
09:18:21.507 [Test worker] INFO  Romeo - Romeo does Register[emailAddress=EmailAddress[address=romeo-6196066116236034475@shakespeareframework.org]] ✓ 16s → true
├── Romeo does SubmitRegisterForm[] ✓ 2s282ms
├── Romeo does EnterAddress[address=Address[firstName=Romeo, lastName=Montague, company=Montague Ltd., addressLine1=515 W Verona Ave, addressLine2=, city=Verona, state=Wisconsin, zipCode=53593, homePhone=(202) 762-1401, mobilePhone=, addressAlias=Home]] ✓ 1s69ms
├── Romeo does EnterPersonalInformation[personalInformation=PersonalInformation[title=MR, firstName=Romeo, lastName=Montague, password=jul13t, dateOfBirth=1999-02-14]] ✓ 2s973ms
├── Romeo does StartRegistration[emailAddress=EmailAddress[address=romeo-6196066116236034475@shakespeareframework.org]] ✓ 309ms
├── Romeo does NavigateToSignInPage[] ✓ 2s263ms
└── Romeo checks LoginStatus[] ✓ 56ms → true

should actually be

09:18:21.444 [Test worker] INFO  Romeo - Romeo does Register[emailAddress=EmailAddress[address=romeo-6196066116236034475@shakespeareframework.org]] ✓ 16s
├── Romeo does EnterAddress[address=Address[firstName=Romeo, lastName=Montague, company=Montague Ltd., addressLine1=515 W Verona Ave, addressLine2=, city=Verona, state=Wisconsin, zipCode=53593, homePhone=(202) 762-1401, mobilePhone=, addressAlias=Home]] ✓ 1s69ms
├── Romeo does EnterPersonalInformation[personalInformation=PersonalInformation[title=MR, firstName=Romeo, lastName=Montague, password=jul13t, dateOfBirth=1999-02-14]] ✓ 2s973ms
├── Romeo does StartRegistration[emailAddress=EmailAddress[address=romeo-6196066116236034475@shakespeareframework.org]] ✓ 309ms
├── Romeo does NavigateToSignInPage[] ✓ 2s263ms
└── Romeo does SubmitRegisterForm[] ✓ 2s282ms
09:18:21.507 [Test worker] INFO  Romeo - Romeo checks LoginStatus[] ✓ 56ms → true