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

Allow to reset the timer #997

Closed
wants to merge 44 commits into from
Closed

Allow to reset the timer #997

wants to merge 44 commits into from

Conversation

andrzejkupczyk
Copy link
Contributor

Overview

This pull request:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

This change allows to reset the timer.

Description

Starting, stopping, and then starting the timer again works like pause/resume feature. However, there are cases when I need to reset the timer to measure the time it takes to complete each step.

@greg-1-anderson
Copy link
Member

Seems okay. We are no longer using the master branch, though; could you please rebase against 3.x?

greg-1-anderson and others added 27 commits October 20, 2020 09:13
* [FEATURE] Add SemVer unit test

* [BUGFIX] Remove redundant check preventing file writes

Remove the check that a given filename is writetable,
since this requires the file to exist beforehand.

We dont expect the file to exist however. Therefore this
check should not be made or create a file if failing.

Since this check is included in file_put_contents anyway
we may remove the check safely.

Closes #959
* Add ignorelist to pack command.

* Add documentation.

* Normalize pattern, use only regex without enclosing slashes.
* Use inject-input-output PR from consolidation/annotated-commands

* Only invalidate the SymfonyStyle object when the input or output object change.

* Use annotated-command ^4.2
…ts (#968)

* Robo-947: Add function for retrieving an application to be used with tests.

* Fix nits. Drupal does not dictate all code styles.

* Fix the nit.

* Don't invoke getRoboFileCommands unnecessarily.

* Nitpicks.

* Test try:exec to validate status codes.

* Nitpicks.

* Add references to usage of test app getter.

* Don't use a trait in Runner from the tests dir.

* Try disabling interactivity.

* Revert "Try disabling interactivity."

This reverts commit 46a727b.

* Use null coalescence.

* Remove incorrect commentary.

* Mark test as skipped for lowest dependency check for symfony4.
* Update lowest dependency and remove skip from test.

* Correct the "lowest" configuration for Symfony4
…ange Robo styling at this point. Update the getting started guide.
greg-1-anderson and others added 15 commits October 20, 2020 09:13
* Fix #935: Upgrade to League Container 3.x

* League\Container\ContainerAwareTrait::getContainer() uses execeptions now.

* Use Psr\Container\ContainerInterface.

* Restored return types on Robo::createContainer() / Robo::createDefaultContainer() and param type on Robo::finalizeContainer().

* Reverted changes to Robo::createContainer() and Robo::createDefaultContainer() return types.

Co-authored-by: Dane Powell <git@danepowell.com>
…s. (#987)

* Avoid public methods from Robo\Common\IO to be interpreted as commands.

* Add a CommandInfoAlterer to ignore methods.

* Use the IgnoredCommandsRegexp facility from AnnotatedCommand to remove methods.

* Set minimum required annotated-command version.

* Pass excluded files as expected by pear/archive_tar.
@andrzejkupczyk andrzejkupczyk changed the base branch from master to 3.x October 20, 2020 07:19
@@ -10,15 +12,15 @@ class RoboFile extends \Robo\Tasks
* to run the tests. This command also runs the remaining Codeception
* tests. You must re-add Codeception to the project to use this.
*/
public function test(array $args, $options =
public function test(ConsoleIO $io, array $args, $options =

Choose a reason for hiding this comment

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

  • The first parameter of a multi-line function declaration must be on the line after the opening bracket
  • Multi-line function declarations must define one parameter per line

[
'coverage-html' => false,
'coverage' => false
])
{
$this->yell("Deprecated: use 'composer test' instead.");
$io->warning("Deprecated: use 'composer test' instead. Codeception-based tests will fail.");

Choose a reason for hiding this comment

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

Line indented incorrectly; expected at least 12 spaces, found 8


$collection = $this->collectionBuilder();
$collection = $this->collectionBuilder($io);

Choose a reason for hiding this comment

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

Line indented incorrectly; expected at least 12 spaces, found 8

@@ -17,6 +21,59 @@ trait IO
*/
protected $io;

public function currentState()
{
return new class($this, $this->input, $this->output, $this->io) implements State {

Choose a reason for hiding this comment

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

  • Class name ($this, is not in camel caps format
  • Expected 1 space before output; 2 found
  • Expected 1 space before io; 2 found
  • Expected 0 spaces between io and comma; 1 found
  • Opening brace of a class must be on the line after the definition

{
$this->obj->restoreState($this->input, $this->output, $this->io);
}
};

Choose a reason for hiding this comment

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

Closing class brace must be on a line by itself

@andrzejkupczyk
Copy link
Contributor Author

Okay, I'll create a new PR 🤦

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.

None yet