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

[Core] Add TestRunStarted event, let Stats handle the exit code #1162

Merged
merged 1 commit into from
Jul 7, 2017

Conversation

brasmusson
Copy link
Contributor

@brasmusson brasmusson commented Jul 2, 2017

Summary

Add TestRunStarted event, move the exit code handling to the Stats class.

Details

Add the TestRunStarted event and present the duration between the TestRunStarted and TestRunFinished events in the summary print out.

Move the handling of exit code and errors to the summary print out to the Stats class.

Motivation and Context

The duration of a test step is the duration between the TestStepStarted and TestStepFinished events. The duration of a test case is the duration between the TestCaseStarted and TestCaseFinished events.
Therefore it is natural that the duration of the test run (presented in the summary print out) is the duration between the TestRunStarted and TestRunFinished events

How Has This Been Tested?

The automated test suite has been updated to verify this behaviour.

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Internal refactoring

Checklist:

  • I've added tests for my code.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@brasmusson brasmusson added this to the 2.0.0 milestone Jul 2, 2017
@mpkorstanje
Copy link
Contributor

Rebased to resolve conflicts

@@ -32,50 +27,17 @@
*/
public class Runtime {

private static final String[] ASSUMPTION_VIOLATED_EXCEPTIONS = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good riddance!

Add the TestRunStarted event and present the duration between the
TestRunStarted and TestRunFinished events in the summary print out.

Move the handling of exit code and errors to the summary print out
to the Stats class.
@mpkorstanje mpkorstanje merged commit 186d51c into master Jul 7, 2017
@mpkorstanje mpkorstanje deleted the add-test-run-started-event branch July 7, 2017 13:19
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
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