Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
pykiso is an integration test framework. With it, it is possible to write
The project will contain:
https://projects.eclipse.org/projects/iot.kiso-testing
pip install pykiso # Core framework
pip install pykiso[plugins] # For installing all plugins
pip install pykiso[all] # For installing all what we have to offer
Poetry is more appropriate for developers as it automatically creates virtual environments.
cd kiso-testing
poetry install --all-extras
poetry shell
To improve code-quality, a configuration of pre-commit hooks are available. The following pre-commit hooks are used:
If you don't have pre-commit installed, you can get it using pip:
pip install pre-commit
Start using the hooks with
pre-commit install
Commits are sorted into multiple categories based on keywords that can occur at any position as part of the commit message. [Category] Keywords
The tool commitizen can help you to create commits which follows these standards.
# if not yet installed:
pip install -U commitizen==2.20.4
# helps you to create a commit:
cz commit
# or use equivalent short variant:
cz c
After you installed the dev dependencies from the pipfile you are able to autogenerate the Changelog.
invoke changelog
Once installed the application is bound to pykiso
, it can be called with the following arguments:
Usage: pykiso [OPTIONS]
Embedded Integration Test Framework - CLI Entry Point.
TAG Filters: any additional option to be passed to the test as tag through
the pykiso call. Multiple values must be separated with a comma.
For example: pykiso -c your_config.yaml --branch-level dev,master --variant
delta
Options:
-c, --test-configuration-file FILE
path to the test configuration file (in YAML
format) [required]
-l, --log-path PATH path to log-file or folder. If not set will
log to STDOUT
--log-level [DEBUG|INFO|WARNING|ERROR]
set the verbosity of the logging
--junit enables the generation of a junit report
--text default, test results are only displayed in
the console
--step-report PATH generate the step report at the specified
path
--failfast stop the test run on the first error or
failure
-v, --verbose activate the internal framework logs
-p, --pattern TEXT test filter pattern, e.g. 'test_suite_1.py'
or 'test_*.py'. Or even more granularly
'test_suite_1.py::test_class::test_name'
--version Show the version and exit.
-h, --help Show this message and exit.
--logger Change the logger class used in pykiso, value
is the import path to the logger class, example
'logging.Logger'
Suitable config files are available in the examples
folder.
invoke run
invoke test
or
pytest
FAQs
Embedded integration testing framework.
We found that pykiso demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.