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

Improve test coverage for cmd package #53

Merged
merged 15 commits into from
Jul 13, 2020
Merged

Improve test coverage for cmd package #53

merged 15 commits into from
Jul 13, 2020

Conversation

ajatprabha
Copy link
Member

No description provided.

@ajatprabha ajatprabha merged commit 799d077 into master Jul 13, 2020
@ajatprabha ajatprabha deleted the improve-coverage branch July 13, 2020 05:41
ajatprabha added a commit to ajatprabha/darkroom that referenced this pull request Jul 19, 2020
* add test for runServerCmd

* update NewDependencies test tp return err if dependencies are not valid

* return err if dependencies are not valid

* create new cobra command with SetupSignalHandler

* refactor server Start with SetupSignalHandler for testable code

* add test for root cmd

* refactor root cmd

* add test for setupSignalHandler

* implement SetupSignalHandler

* add newRunCmdWithOpts to rootCmd with SetupSignalHandler

* add test for LifeCycleHook

* refactor if-else statement

* remove signals package and import it from sigs.k8s.io/controller-runtime

* add version cmd to root

* remove TDD cycle comments
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.

1 participant