Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Track all event objects for a suite in JSON logger (7.0) #34

Merged
merged 3 commits into from
Jun 20, 2018

Conversation

mycarrysun
Copy link
Contributor

Fixes #33 and #5203

@mycarrysun mycarrysun changed the title Track all event objects for a suite in JSON logger - Fixes Track all event objects for a suite in JSON logger (7.0) Jun 16, 2018
* @param string $buffer
* @param array $event_data
*/
protected function addLogEvent($event_data = []): void
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used a class prop to store all events so we can write all the events properly JSON encoded at the end of the suite

@DavertMik
Copy link
Member

Got it, thanks!

@DavertMik DavertMik merged commit f18ed63 into Codeception:7.0 Jun 20, 2018
@DavertMik
Copy link
Member

Btw, where do you use JSON reports?

@mycarrysun
Copy link
Contributor Author

@DavertMik to save the output to our database - very helpful for logging and looking at the event objects to see what passed etc...but before the PR the json_decode function returned null.

@mycarrysun mycarrysun deleted the fix-json-format branch June 20, 2018 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants