Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize Reporting & Introduce suite-by-suite HTML Reporting #83

Merged
merged 11 commits into from
Feb 7, 2017

Conversation

Dzol
Copy link
Contributor

@Dzol Dzol commented Jan 23, 2017

This introduces and Event Manager similar to ExUnit's.

We can send test information to more than one outputter and keep the outputter processes spinning between test suites. This way the outputters, namely the HTML outputter, can report on a suite-by-suite basis. The Console outputter is adapted (this PR makes it responsible for more of the console output we see).

Joseph Yiasemides added 6 commits December 20, 2016 11:44
This is going to move out of terminate/2 and it's more clear this way.
We will need this if the HTML reporter is going to stick around long
enough to recieve information about more than one BDD suite.
@Dzol
Copy link
Contributor Author

Dzol commented Jan 23, 2017

I'll resolve the failed builds on Travis: not sure why only some fail.

@Dzol
Copy link
Contributor Author

Dzol commented Jan 23, 2017

Okay: the release notes for 1.2 write the following under enhancements.

[GenServer] Add GenServer.stop/1 for shutting down servers reliably

@Dzol Dzol changed the title Improve How Reporting is Done Generalize How Reporting is Done & Introduce suite-by-suite HTML Reporting Jan 23, 2017
@Dzol Dzol changed the title Generalize How Reporting is Done & Introduce suite-by-suite HTML Reporting Generalize Reporting & Introduce suite-by-suite HTML Reporting Jan 23, 2017
This keeps the test and CI output like it was before we replaced the
progress reporter with the event manager and generic servers.
@Dzol Dzol force-pushed the improve-report branch 3 times, most recently from f7f82b8 to 335bffb Compare January 23, 2017 18:58
for {_, pid, _, _} <- Supervisor.which_children(__MODULE__) do
GenServer.stop(pid, :normal, @timeout)
end
Supervisor.stop(__MODULE__)
Copy link

Choose a reason for hiding this comment

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

As you're using Supervisor.stop/1 there's no need to individually stop the children. As they're linked they will be stopped along with the supervisor.

@meadsteve
Copy link
Collaborator

Bit late looking at this but I like the approach. Thanks for the contribution 👍 I'll merge and tag this morning.

@meadsteve meadsteve merged commit ae03740 into meadery:master Feb 7, 2017
@Dzol
Copy link
Contributor Author

Dzol commented Feb 7, 2017

@meadsteve: Thanks for updating the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants