• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zhmcclient / zhmccli
41%
master: 40%

Build:
Build:
LAST BUILD BRANCH: renovate/python-3.x
DEFAULT BRANCH: master
Repo Added 21 Sep 2017 07:40AM UTC
Files 34
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH andy/add-unit-test-concept
branch: andy/add-unit-test-concept
CHANGE BRANCH
x
Reset
  • andy/add-unit-test-concept
  • 0.18.0
  • 1.12/andy/fix-all-option
  • 1.12/andy/fix-ceased
  • 1.12/andy/fix-check-reqs-safety
  • 1.12/andy/fix-ignored-options
  • 1.12/andy/fix-repl-exit
  • 1.12/andy/fix-sg-ports
  • 1.12/andy/prepare-ubuntu-24.04
  • 1.12/andy/pypi-trusted-publishing
  • 1.12/andy/safety-2025-01
  • 1.12/andy/safety-2025-02-23
  • 1.12/andy/safety-2025-02-26
  • 1.12/andy/safety-dependencies
  • 1.12/andy/sg-adapter-name
  • 1.13/andy/authors-order
  • 1.13/andy/fix-dpm-export-cpc-properties
  • 1.13/andy/fix-is-flag
  • 1.13/andy/fix-makefile-testcases
  • 1.13/andy/fix-name-access
  • 1.13/andy/fix-pydantic-core-deps
  • 1.13/andy/fix-typer-0.17
  • 1.13/andy/safety-2025-06-04
  • 1.13/andy/safety-2025-07-23
  • 1.13/anil/zhmccli/upgrade-nltk
  • 1.13/anil/zhmccli/upgrade-safety-version
  • andy/add-client-version
  • andy/add-cryptography-min
  • andy/add-filter-support
  • andy/add-format-tests
  • andy/add-lpar-force
  • andy/authors-order
  • andy/builddoc-version-consistency
  • andy/changelog-in-master-docs
  • andy/check-changes
  • andy/commit-checks
  • andy/consolidate-test-output
  • andy/coveralls-retries
  • andy/csv-output
  • andy/debug-builddoc-version
  • andy/doclinkcheck
  • andy/docs-logging
  • andy/e2e-hw-message
  • andy/e2e_characterrule
  • andy/enable-manual-ci-runs
  • andy/end2end-test-concept
  • andy/executable
  • andy/executable-pipx
  • andy/extend-csv-tests
  • andy/fix-2
  • andy/fix-all-option
  • andy/fix-author-mailmap
  • andy/fix-broken-doclinks
  • andy/fix-build-error
  • andy/fix-ceased
  • andy/fix-check-reqs
  • andy/fix-check-reqs-safety
  • andy/fix-commit-checks
  • andy/fix-console-logger
  • andy/fix-dpm-export-cpc-properties
  • andy/fix-e2e-session
  • andy/fix-e2e-session-logoff
  • andy/fix-git-appveyor
  • andy/fix-ignored-options
  • andy/fix-is-flag
  • andy/fix-make-dependencies
  • andy/fix-make-test
  • andy/fix-makefile
  • andy/fix-makefile-testcases
  • andy/fix-name-access
  • andy/fix-new-flake8
  • andy/fix-pydantic-core-deps
  • andy/fix-pytokens-dep
  • andy/fix-readline
  • andy/fix-readline-windows
  • andy/fix-release-verify
  • andy/fix-repl-exit
  • andy/fix-repl-password
  • andy/fix-scheduled-runs
  • andy/fix-sg-ports
  • andy/fix-test-log-error
  • andy/fix-travis-build-clib
  • andy/fix-travis-syntax-error
  • andy/fix-typer-0.17
  • andy/fix-wide-columns
  • andy/fix-zhmcclient-branch
  • andy/gitignore
  • andy/handle-http-422-publish
  • andy/help-partition-type
  • andy/hw-messages
  • andy/improve-install-docs
  • andy/improve-session-tests
  • andy/install-editable
  • andy/install-pipx-2
  • andy/interactive-password
  • andy/make-pbr-importerror
  • andy/missing-py-dependency
  • andy/move-bandit-rules-to-source
  • andy/move-conn-to-end2end
  • andy/named-sessions
  • andy/no-vswitch
  • andy/pin-snowballstemmer
  • andy/pip-no-warn
  • andy/platform-details
  • andy/prepare-ubuntu-24.04
  • andy/recent-fixes
  • andy/remove-ordereddict
  • andy/remove-test-classes-2
  • andy/rename-test-module
  • andy/rename-tests
  • andy/rtd-links
  • andy/safety-2025-02-23
  • andy/safety-2025-02-26
  • andy/safety-2025-05-09
  • andy/safety-2025-06-04
  • andy/safety-2025-07-23
  • andy/select-zhmcclient-version
  • andy/session-time
  • andy/sg-adapter-name
  • andy/sort-by-names
  • andy/storagevolume-show-uuid
  • andy/unit-test-init
  • andy/update-copyright
  • andy/zhmcclient-1.19.0
  • andy/zhmcclient-1.21.0
  • anil/zhmccli/upgrade-nltk
  • anil/zhmccli/upgrade-safety-version
  • edwin/feature/export-version
  • edwin/feature/export-versions
  • juergen/add-power-mgmt
  • manual-ci-run
  • master
  • release-0.18.0
  • release-0.19.0
  • release_1.12.1
  • release_1.12.2
  • release_1.12.3
  • release_1.12.4
  • release_1.12.5
  • release_1.13.0
  • release_1.13.1
  • renovate/actions-github-script-8.x
  • renovate/actions-setup-python-6.x
  • renovate/python-3.x
  • stable_0.20
  • stable_0.21
  • stable_0.22
  • stable_1.0
  • stable_1.1
  • stable_1.10
  • stable_1.11
  • stable_1.12
  • stable_1.13
  • stable_1.2
  • stable_1.3
  • stable_1.4
  • stable_1.5
  • stable_1.6
  • stable_1.7
  • stable_1.8
  • stable_1.9
  • start-0.19.0
  • start-0.20.0
  • start_1.12.1
  • start_1.12.2
  • start_1.12.3
  • start_1.12.4
  • start_1.12.5
  • start_1.13.0
  • start_1.13.1
  • start_1.14.0
  • v0.19.0

pending completion
237

push

travis-ci

andy-maier
Added concept for function testing zhmccli + first testcases

Details:

Added a concept for function tests for the zhmc CLI:

- Added two functions in a utils module for invoking the 'zhmc' command:

  * call_zhmc_child(): Invokes the zhmc command as a child process.

  * call_zhmc_inline(): Invoke the cli() function of zhmc in the current
    Python process. This function allows for setting up a mocked environment.

- In the zhmccli code, added support for passing the FakedSession object
  for the mocked environment as a global variable of the zhmcclient_mock
  module. The expression to access the FakedSession object is passed
  as a string in the ZHMC_SESSION_ID environment variable.

- Enabled the zhmccli cli() function to be called multiple times in
  the same Python process, which is what testcases using call_zhmc_inline()
  will do. This enablement consists of this change:

  * Different setup of the logger handlers: Before this change, the
    new handler was added to the loggers that were specified. This causes
    write attempts to closed log files for stderr, because the loggers had
    stream handlers from previous invocations which pointed to meanwhile
    closed temp files for capturing stdout/stderr. With this change, all
    loggers are first reset to have exactly one NullHandler, and then
    the handlers for the specified loggers are added.

Added some initial function tests, for the 'info' subcommand and for
global command options. Removed the test_dummy.py file because we now have
real tests.

Signed-off-by: Andreas Maier <maiera@de.ibm.com>

830 of 2022 relevant lines covered (41.05%)

0.41 hits per line

Relevant lines Covered
Build:
Build:
2022 RELEVANT LINES 830 COVERED LINES
0.41 HITS PER LINE
Source Files on andy/add-unit-test-concept
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
237 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 17 Oct 2017 11:26AM UTC andy-maier travis-ci pending completion  
212 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 14 Oct 2017 08:47AM UTC andy-maier travis-ci pending completion  
182 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 12 Oct 2017 03:45PM UTC andy-maier travis-ci pending completion  
130 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 10 Oct 2017 10:22AM UTC andy-maier travis-ci pending completion  
115 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 04 Oct 2017 10:01AM UTC andy-maier travis-ci pending completion  
109 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 04 Oct 2017 09:32AM UTC andy-maier travis-ci pending completion  
104 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 03 Oct 2017 09:09PM UTC andy-maier travis-ci pending completion  
97 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 03 Oct 2017 08:54PM UTC andy-maier travis-ci pending completion  
96 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 03 Oct 2017 08:47PM UTC andy-maier travis-ci pending completion  
93 andy/add-unit-test-concept Added concept for function testing zhmccli + first testcases Details: Added a concept for function tests for the zhmc CLI: - Added two functions in a utils module for invoking the 'zhmc' command: * call_zhmc_child(): Invokes the zhmc command... push 03 Oct 2017 08:20PM UTC andy-maier travis-ci pending completion  
See All Builds (1819)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc