cli-test-framework 0.5.4__tar.gz → 0.8.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cli_test_framework-0.5.4/src/cli_test_framework.egg-info → cli_test_framework-0.8.1}/PKG-INFO +82 -3
- cli_test_framework-0.8.1/README.md +196 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/docs/user_manual.md +279 -16
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/docs/user_manual_en.md +106 -4
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/setup.py +1 -1
- cli_test_framework-0.8.1/src/cli_test_framework/__init__.py +45 -0
- cli_test_framework-0.8.1/src/cli_test_framework/cli.py +284 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/commands/compare.py +99 -95
- cli_test_framework-0.8.1/src/cli_test_framework/core/assertions.py +113 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/base_runner.py +28 -72
- cli_test_framework-0.8.1/src/cli_test_framework/core/config_loader.py +223 -0
- cli_test_framework-0.8.1/src/cli_test_framework/core/execution.py +159 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/parallel_runner.py +80 -12
- cli_test_framework-0.8.1/src/cli_test_framework/core/process_worker.py +64 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/setup.py +18 -15
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/test_case.py +0 -2
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/types.py +9 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/base_comparator.py +1 -1
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/binary_comparator.py +54 -38
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/csv_comparator.py +3 -2
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/factory.py +9 -58
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/h5_comparator.py +1 -5
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/json_comparator.py +3 -2
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/text_comparator.py +11 -1
- cli_test_framework-0.8.1/src/cli_test_framework/logging_config.py +66 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/runners/__init__.py +2 -0
- cli_test_framework-0.8.1/src/cli_test_framework/runners/config_runner.py +94 -0
- cli_test_framework-0.8.1/src/cli_test_framework/runners/json_runner.py +26 -0
- cli_test_framework-0.8.1/src/cli_test_framework/runners/parallel_config_runner.py +272 -0
- cli_test_framework-0.8.1/src/cli_test_framework/runners/parallel_json_runner.py +30 -0
- cli_test_framework-0.8.1/src/cli_test_framework/runners/parallel_yaml_runner.py +35 -0
- cli_test_framework-0.8.1/src/cli_test_framework/runners/yaml_runner.py +31 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/utils/__init__.py +4 -2
- cli_test_framework-0.8.1/src/cli_test_framework/utils/junit_xml_writer.py +117 -0
- cli_test_framework-0.8.1/src/cli_test_framework/utils/path_resolver.py +124 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/utils/report_generator.py +8 -3
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1/src/cli_test_framework.egg-info}/PKG-INFO +82 -3
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework.egg-info/SOURCES.txt +12 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/__pycache__/test_history_feature.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/__pycache__/test_history_feature.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/__pycache__/test_sequence.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/__pycache__/test_sequence.cpython-312-pytest-9.0.3.pyc +0 -0
- cli_test_framework-0.8.1/tests/integration/file_compare/__pycache__/test_binary_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_binary_compare.cpython-312-pytest-9.0.3.pyc +0 -0
- cli_test_framework-0.8.1/tests/integration/file_compare/test_binary_compare.py +152 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/test_history_feature.py +4 -4
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/test_sequence.py +24 -20
- cli_test_framework-0.8.1/tests/unit/__pycache__/test_cli.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/__pycache__/test_cli.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/__pycache__/test_run_all.cpython-312-pytest-7.4.4.pyc +0 -0
- cli_test_framework-0.8.1/tests/unit/core/__pycache__/test_assertions.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_assertions.cpython-312-pytest-9.0.3.pyc +0 -0
- cli_test_framework-0.8.1/tests/unit/core/__pycache__/test_execution.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_process_worker.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_process_worker.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_setup.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_setup.cpython-312-pytest-9.0.3.pyc +0 -0
- cli_test_framework-0.8.1/tests/unit/core/test_assertions.py +320 -0
- cli_test_framework-0.8.1/tests/unit/core/test_execution.py +70 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/test_process_worker.py +4 -4
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/test_setup.py +4 -2
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/runners/__pycache__/test_json_yaml_runner.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/runners/__pycache__/test_json_yaml_runner.cpython-312-pytest-9.0.3.pyc +0 -0
- cli_test_framework-0.8.1/tests/unit/runners/__pycache__/test_test_case_filter.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/runners/__pycache__/test_test_case_filter.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/runners/test_json_yaml_runner.py +8 -4
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/runners/test_test_case_filter.py +28 -14
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/test_cli.py +10 -9
- cli_test_framework-0.8.1/tests/unit/utils/__pycache__/test_junit_xml_writer.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/utils/__pycache__/test_junit_xml_writer.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/utils/__pycache__/test_report_generator.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/utils/__pycache__/test_report_generator.cpython-312-pytest-9.0.3.pyc +0 -0
- cli_test_framework-0.8.1/tests/unit/utils/test_junit_xml_writer.py +259 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/utils/test_report_generator.py +2 -2
- cli_test_framework-0.5.4/README.md +0 -117
- cli_test_framework-0.5.4/src/cli_test_framework/__init__.py +0 -29
- cli_test_framework-0.5.4/src/cli_test_framework/cli.py +0 -152
- cli_test_framework-0.5.4/src/cli_test_framework/core/assertions.py +0 -32
- cli_test_framework-0.5.4/src/cli_test_framework/core/execution.py +0 -95
- cli_test_framework-0.5.4/src/cli_test_framework/core/process_worker.py +0 -111
- cli_test_framework-0.5.4/src/cli_test_framework/runners/json_runner.py +0 -96
- cli_test_framework-0.5.4/src/cli_test_framework/runners/parallel_json_runner.py +0 -321
- cli_test_framework-0.5.4/src/cli_test_framework/runners/yaml_runner.py +0 -95
- cli_test_framework-0.5.4/src/cli_test_framework/utils/path_resolver.py +0 -210
- cli_test_framework-0.5.4/tests/integration/file_compare/__pycache__/test_binary_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- cli_test_framework-0.5.4/tests/integration/file_compare/test_binary_compare.py +0 -31
- cli_test_framework-0.5.4/tests/unit/__pycache__/test_cli.cpython-312-pytest-7.4.4.pyc +0 -0
- cli_test_framework-0.5.4/tests/unit/runners/__pycache__/test_test_case_filter.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/MANIFEST.in +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/docs/design.md +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/docs/design_en.md +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/pyproject.toml +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/setup.cfg +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/commands/__init__.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/__init__.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/core/history_store.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/__init__.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/result.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework/file_comparator/xml_comparator.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework.egg-info/dependency_links.txt +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework.egg-info/entry_points.txt +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework.egg-info/requires.txt +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/src/cli_test_framework.egg-info/top_level.txt +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/README.md +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__init__.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/__init__.cpython-312.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/__init__.cpython-39.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/conftest.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/conftest.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/conftest.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/run_all.cpython-312.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/run_all.cpython-39.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/test_parallel_runner.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/__pycache__/test_setup_module.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/conftest.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/demos/h5_filter_demo.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/demos/manual_report_example.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/demos/perf_parallel.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/__init__.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/__pycache__/__init__.cpython-312.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/__pycache__/__init__.cpython-39.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/__pycache__/test_user_flows.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/__pycache__/test_user_flows.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/__pycache__/test_user_flows.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/e2e/test_user_flows.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/fixtures/test_cases.json +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/fixtures/test_cases.yaml +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/fixtures/test_cases1.json +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/fixtures/test_with_setup.json +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/fixtures/test_with_setup.yaml +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/__pycache__/test_real_command_execution.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/__pycache__/test_real_command_execution.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_binary_compare.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_csv_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_csv_compare.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_h5_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_h5_compare.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_h5_compare.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_json_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_json_compare.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_json_compare.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_text_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_text_compare.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_text_compare.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_xml_compare.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/__pycache__/test_xml_compare.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/test_csv_compare.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/test_h5_compare.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/test_json_compare.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/test_text_compare.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/file_compare/test_xml_compare.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/parallel/__pycache__/test_parallel_runner.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/parallel/__pycache__/test_parallel_runner.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/parallel/__pycache__/test_parallel_runner.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/parallel/test_parallel_runner.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/path_handling/__pycache__/test_spaces_in_paths.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/path_handling/__pycache__/test_spaces_in_paths.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/path_handling/__pycache__/test_spaces_in_paths.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/path_handling/test_spaces_in_paths.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/integration/test_real_command_execution.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/run_all.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/test_report.txt +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/__pycache__/test_h5_comparator.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/__pycache__/test_h5_comparator.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/__pycache__/test_run_all.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/commands/__pycache__/test_compare_command.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/commands/__pycache__/test_compare_command.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/commands/test_compare_command.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_history_store.cpython-312-pytest-7.4.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_history_store.cpython-312-pytest-9.0.3.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/__pycache__/test_setup.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/core/test_history_store.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/runners/__pycache__/test_json_yaml_runner.cpython-39-pytest-8.3.4.pyc +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/test_h5_comparator.py +0 -0
- {cli_test_framework-0.5.4 → cli_test_framework-0.8.1}/tests/unit/test_run_all.py +0 -0
{cli_test_framework-0.5.4/src/cli_test_framework.egg-info → cli_test_framework-0.8.1}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cli-test-framework
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.1
|
|
4
4
|
Summary: A powerful command line testing framework in Python with setup modules, parallel execution, and file comparison capabilities.
|
|
5
5
|
Home-page: https://github.com/ozil111/cli-test-framework
|
|
6
6
|
Author: Xiaotong Wang
|
|
@@ -50,12 +50,14 @@ CLI Test Framework was built for that workflow.
|
|
|
50
50
|
|
|
51
51
|
## Highlights
|
|
52
52
|
|
|
53
|
+
- **Golden File Assertion** — `compare_files` embedded in test `expected`, compares output files against baselines with tolerance
|
|
53
54
|
- **Parallel Execution** — Multi-thread / multi-process, 3-5x speedup
|
|
54
55
|
- **Resource-Aware Scheduling** — Automatic CPU core management, prevents solver thread runaway
|
|
55
56
|
- **Sequence Steps** — Multi-step execution within a single test case, fail-fast
|
|
56
57
|
- **Setup Module** — Auto-configure environment variables before tests, auto-cleanup after
|
|
57
|
-
- **File Comparison** — Text / JSON / HDF5 / Binary,
|
|
58
|
+
- **File Comparison** — Text / JSON / CSV / XML / HDF5 / Binary, with CLI and embedded assertion support
|
|
58
59
|
- **Filtered Execution** — Run specific test cases by name
|
|
60
|
+
- **JUnit XML Output** — `--junit-xml` for GitLab CI / Jenkins / CircleCI test report panels
|
|
59
61
|
|
|
60
62
|
## Quick Start
|
|
61
63
|
|
|
@@ -89,12 +91,75 @@ pip install cli-test-framework
|
|
|
89
91
|
cli-test run test_cases.json
|
|
90
92
|
```
|
|
91
93
|
|
|
94
|
+
### Golden File Comparison in Tests
|
|
95
|
+
|
|
96
|
+
Run a simulation, then compare its output file against a reference:
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"test_cases": [
|
|
101
|
+
{
|
|
102
|
+
"name": "FEA displacement check",
|
|
103
|
+
"command": "my_solver",
|
|
104
|
+
"args": ["--input", "case1.dat", "--output", "out.h5"],
|
|
105
|
+
"expected": {
|
|
106
|
+
"return_code": 0,
|
|
107
|
+
"compare_files": [
|
|
108
|
+
{
|
|
109
|
+
"actual": "out.h5",
|
|
110
|
+
"baseline": "ref/golden.h5",
|
|
111
|
+
"rtol": 1e-5,
|
|
112
|
+
"atol": 1e-8,
|
|
113
|
+
"tables": ["NASTRAN/RESULT/NODAL/DISPLACEMENT"]
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
- `actual` – file produced by the command
|
|
123
|
+
- `baseline` – reference file to compare against
|
|
124
|
+
- `type` – comparator type (auto-detected from extension if omitted: `.h5`→h5, `.json`→json, `.csv`→csv, `.xml`→xml, `.txt`→text)
|
|
125
|
+
- all other keys are forwarded as comparator parameters (`rtol`, `atol`, `tables`, `table_regex`, `data_filter`, `encoding`, `structure_only`, `delimiter`, `compare_mode`, `key_field`, etc.)
|
|
126
|
+
|
|
127
|
+
Multiple files and mixed assertion types coexist naturally:
|
|
128
|
+
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"expected": {
|
|
132
|
+
"return_code": 0,
|
|
133
|
+
"output_contains": ["simulation finished"],
|
|
134
|
+
"compare_files": [
|
|
135
|
+
{"actual": "out.h5", "baseline": "ref/disp.h5", "rtol": 1e-5},
|
|
136
|
+
{"actual": "report.csv", "baseline": "ref/expected.csv", "rtol": 1e-6}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
92
142
|
### Parallel Execution
|
|
93
143
|
|
|
94
144
|
```bash
|
|
95
145
|
cli-test run test_cases.json --parallel --workers 4
|
|
96
146
|
```
|
|
97
147
|
|
|
148
|
+
### JUnit XML (CI Integration)
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
cli-test run test_cases.json --junit-xml report.xml
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
In GitLab CI:
|
|
155
|
+
|
|
156
|
+
```yaml
|
|
157
|
+
# .gitlab-ci.yml
|
|
158
|
+
artifacts:
|
|
159
|
+
reports:
|
|
160
|
+
junit: report.xml
|
|
161
|
+
```
|
|
162
|
+
|
|
98
163
|
### Python API
|
|
99
164
|
|
|
100
165
|
```python
|
|
@@ -109,7 +174,7 @@ runner = ParallelJSONRunner(config_file="test_cases.json", max_workers=4, execut
|
|
|
109
174
|
success = runner.run_tests()
|
|
110
175
|
```
|
|
111
176
|
|
|
112
|
-
### File Comparison
|
|
177
|
+
### File Comparison (Standalone CLI)
|
|
113
178
|
|
|
114
179
|
```bash
|
|
115
180
|
compare-files result1.h5 result2.h5 --h5-table-regex "output_.*" --h5-rtol 1e-5
|
|
@@ -119,6 +184,20 @@ compare-files result1.h5 result2.h5 --h5-table-regex "output_.*" --h5-rtol 1e-5
|
|
|
119
184
|
|
|
120
185
|
## Changelog
|
|
121
186
|
|
|
187
|
+
### 0.8.0
|
|
188
|
+
|
|
189
|
+
- **JUnit XML output**: New `--junit-xml <filepath>` CLI option writes JUnit-format XML reports that integrate directly with GitLab CI, Jenkins, CircleCI, and other CI tools. Supports `passed` / `failed` / `timeout` / `error` status mapping. Zero extra dependencies — built with `xml.etree.ElementTree`.
|
|
190
|
+
|
|
191
|
+
### 0.7.0
|
|
192
|
+
|
|
193
|
+
- **Unified logging system**: All diagnostic output (executor, runner, scheduler, setup) now uses Python's standard `logging` module under the `cli_test_framework` namespace. Library users can suppress output entirely via `logging.getLogger("cli_test_framework").setLevel(logging.WARNING)`. Removes the previous ad-hoc `print()` + `_print_lock` pattern — `logging` is inherently thread-safe.
|
|
194
|
+
- **Default handler**: A `StreamHandler` at INFO level is installed on first import, so CLI behavior is unchanged. Use `--verbose` / `--debug` to enable DEBUG-level output.
|
|
195
|
+
- **Public API**: `get_logger(name)` exposed via `cli_test_framework.get_logger` for consistent logger creation in extensions.
|
|
196
|
+
|
|
197
|
+
### 0.6.0
|
|
198
|
+
|
|
199
|
+
- **Golden file assertion**: `compare_files` is now a first-class assertion in test `expected` — compare output files against baselines directly in your test definitions, with full tolerance and parameter support. The `file_comparator` subsystem is now integrated into the assertion pipeline, completing the closed loop from command execution to result verification.
|
|
200
|
+
|
|
122
201
|
### 0.5.2
|
|
123
202
|
|
|
124
203
|
- Runtime history tracking (`--history-dir`): persist per-case execution time in `.symtest`, enable smart scheduling & regression detection
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
# CLI Test Framework
|
|
2
|
+
|
|
3
|
+
A lightweight automated testing framework for command-line applications. Define test cases in JSON/YAML, run all validations with a single command.
|
|
4
|
+
|
|
5
|
+
Particularly suited for scientific computing — deep HDF5 support with regex table matching, data filtering, and tolerance-based comparison, making simulation result verification effortless.
|
|
6
|
+
|
|
7
|
+
## Why this exists
|
|
8
|
+
|
|
9
|
+
This project was created from a real need: regression testing finite-element software.
|
|
10
|
+
|
|
11
|
+
In solver-style projects, checking the exit code is not enough. A test often needs to run multiple commands, generate numerical result files, compare HDF5/CSV outputs with tolerances, and make sure old cases do not become slower over time.
|
|
12
|
+
|
|
13
|
+
CLI Test Framework was built for that workflow.
|
|
14
|
+
|
|
15
|
+
## Highlights
|
|
16
|
+
|
|
17
|
+
- **Golden File Assertion** — `compare_files` embedded in test `expected`, compares output files against baselines with tolerance
|
|
18
|
+
- **Parallel Execution** — Multi-thread / multi-process, 3-5x speedup
|
|
19
|
+
- **Resource-Aware Scheduling** — Automatic CPU core management, prevents solver thread runaway
|
|
20
|
+
- **Sequence Steps** — Multi-step execution within a single test case, fail-fast
|
|
21
|
+
- **Setup Module** — Auto-configure environment variables before tests, auto-cleanup after
|
|
22
|
+
- **File Comparison** — Text / JSON / CSV / XML / HDF5 / Binary, with CLI and embedded assertion support
|
|
23
|
+
- **Filtered Execution** — Run specific test cases by name
|
|
24
|
+
- **JUnit XML Output** — `--junit-xml` for GitLab CI / Jenkins / CircleCI test report panels
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install cli-test-framework
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 30-Second Setup
|
|
33
|
+
|
|
34
|
+
1. Create `test_cases.json`:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"test_cases": [
|
|
39
|
+
{
|
|
40
|
+
"name": "hello",
|
|
41
|
+
"command": "echo",
|
|
42
|
+
"args": ["Hello World"],
|
|
43
|
+
"expected": {
|
|
44
|
+
"return_code": 0,
|
|
45
|
+
"output_contains": ["Hello World"]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
2. Run:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
cli-test run test_cases.json
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Golden File Comparison in Tests
|
|
59
|
+
|
|
60
|
+
Run a simulation, then compare its output file against a reference:
|
|
61
|
+
|
|
62
|
+
```json
|
|
63
|
+
{
|
|
64
|
+
"test_cases": [
|
|
65
|
+
{
|
|
66
|
+
"name": "FEA displacement check",
|
|
67
|
+
"command": "my_solver",
|
|
68
|
+
"args": ["--input", "case1.dat", "--output", "out.h5"],
|
|
69
|
+
"expected": {
|
|
70
|
+
"return_code": 0,
|
|
71
|
+
"compare_files": [
|
|
72
|
+
{
|
|
73
|
+
"actual": "out.h5",
|
|
74
|
+
"baseline": "ref/golden.h5",
|
|
75
|
+
"rtol": 1e-5,
|
|
76
|
+
"atol": 1e-8,
|
|
77
|
+
"tables": ["NASTRAN/RESULT/NODAL/DISPLACEMENT"]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
- `actual` – file produced by the command
|
|
87
|
+
- `baseline` – reference file to compare against
|
|
88
|
+
- `type` – comparator type (auto-detected from extension if omitted: `.h5`→h5, `.json`→json, `.csv`→csv, `.xml`→xml, `.txt`→text)
|
|
89
|
+
- all other keys are forwarded as comparator parameters (`rtol`, `atol`, `tables`, `table_regex`, `data_filter`, `encoding`, `structure_only`, `delimiter`, `compare_mode`, `key_field`, etc.)
|
|
90
|
+
|
|
91
|
+
Multiple files and mixed assertion types coexist naturally:
|
|
92
|
+
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"expected": {
|
|
96
|
+
"return_code": 0,
|
|
97
|
+
"output_contains": ["simulation finished"],
|
|
98
|
+
"compare_files": [
|
|
99
|
+
{"actual": "out.h5", "baseline": "ref/disp.h5", "rtol": 1e-5},
|
|
100
|
+
{"actual": "report.csv", "baseline": "ref/expected.csv", "rtol": 1e-6}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Parallel Execution
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
cli-test run test_cases.json --parallel --workers 4
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### JUnit XML (CI Integration)
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
cli-test run test_cases.json --junit-xml report.xml
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
In GitLab CI:
|
|
119
|
+
|
|
120
|
+
```yaml
|
|
121
|
+
# .gitlab-ci.yml
|
|
122
|
+
artifacts:
|
|
123
|
+
reports:
|
|
124
|
+
junit: report.xml
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Python API
|
|
128
|
+
|
|
129
|
+
```python
|
|
130
|
+
from cli_test_framework.runners import JSONRunner, ParallelJSONRunner
|
|
131
|
+
|
|
132
|
+
# Sequential
|
|
133
|
+
runner = JSONRunner(config_file="test_cases.json")
|
|
134
|
+
success = runner.run_tests()
|
|
135
|
+
|
|
136
|
+
# Parallel
|
|
137
|
+
runner = ParallelJSONRunner(config_file="test_cases.json", max_workers=4, execution_mode="thread")
|
|
138
|
+
success = runner.run_tests()
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### File Comparison (Standalone CLI)
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
compare-files result1.h5 result2.h5 --h5-table-regex "output_.*" --h5-rtol 1e-5
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
📖 **Full Documentation**: [docs/user_manual.md](docs/user_manual_en.md)
|
|
148
|
+
|
|
149
|
+
## Changelog
|
|
150
|
+
|
|
151
|
+
### 0.8.0
|
|
152
|
+
|
|
153
|
+
- **JUnit XML output**: New `--junit-xml <filepath>` CLI option writes JUnit-format XML reports that integrate directly with GitLab CI, Jenkins, CircleCI, and other CI tools. Supports `passed` / `failed` / `timeout` / `error` status mapping. Zero extra dependencies — built with `xml.etree.ElementTree`.
|
|
154
|
+
|
|
155
|
+
### 0.7.0
|
|
156
|
+
|
|
157
|
+
- **Unified logging system**: All diagnostic output (executor, runner, scheduler, setup) now uses Python's standard `logging` module under the `cli_test_framework` namespace. Library users can suppress output entirely via `logging.getLogger("cli_test_framework").setLevel(logging.WARNING)`. Removes the previous ad-hoc `print()` + `_print_lock` pattern — `logging` is inherently thread-safe.
|
|
158
|
+
- **Default handler**: A `StreamHandler` at INFO level is installed on first import, so CLI behavior is unchanged. Use `--verbose` / `--debug` to enable DEBUG-level output.
|
|
159
|
+
- **Public API**: `get_logger(name)` exposed via `cli_test_framework.get_logger` for consistent logger creation in extensions.
|
|
160
|
+
|
|
161
|
+
### 0.6.0
|
|
162
|
+
|
|
163
|
+
- **Golden file assertion**: `compare_files` is now a first-class assertion in test `expected` — compare output files against baselines directly in your test definitions, with full tolerance and parameter support. The `file_comparator` subsystem is now integrated into the assertion pipeline, completing the closed loop from command execution to result verification.
|
|
164
|
+
|
|
165
|
+
### 0.5.2
|
|
166
|
+
|
|
167
|
+
- Runtime history tracking (`--history-dir`): persist per-case execution time in `.symtest`, enable smart scheduling & regression detection
|
|
168
|
+
- Regression warning: alert when a case runs slower than historical average × threshold (`--regression-threshold`, default 1.5)
|
|
169
|
+
- Smart scheduling: parallel runner prioritizes historical `avg_duration` over config `estimated_time` for task ordering
|
|
170
|
+
- Per-case duration now shown in test result output
|
|
171
|
+
|
|
172
|
+
### 0.5.1
|
|
173
|
+
- Run specific test cases by name (`-t` / `test_case_filter`)
|
|
174
|
+
|
|
175
|
+
### 0.5.0
|
|
176
|
+
- Steps feature: sequential multi-command execution within a single test case, fail-fast
|
|
177
|
+
|
|
178
|
+
### 0.4.2
|
|
179
|
+
- Resource-aware scheduling: auto-detect CPU cores, semaphore-based core allocation
|
|
180
|
+
- Auto-inject `OMP_NUM_THREADS` / `MKL_NUM_THREADS` / `NPROC` to prevent solver thread runaway
|
|
181
|
+
- Per-test `timeout` support to prevent hanging
|
|
182
|
+
|
|
183
|
+
### 0.4.1
|
|
184
|
+
- Multi-thread / multi-process parallel execution, 3-5x speedup
|
|
185
|
+
|
|
186
|
+
## Contributing
|
|
187
|
+
|
|
188
|
+
Before submitting a PR, please make sure all tests pass:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
python tests\run_all.py
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## License
|
|
195
|
+
|
|
196
|
+
MIT
|