cucu 1.3.13__tar.gz → 1.3.14__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.
Potentially problematic release.
This version of cucu might be problematic. Click here for more details.
- {cucu-1.3.13 → cucu-1.3.14}/PKG-INFO +1 -1
- {cucu-1.3.13 → cucu-1.3.14}/pyproject.toml +1 -1
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/cli/core.py +10 -1
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/db.py +12 -5
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/webserver_steps.py +1 -1
- {cucu-1.3.13 → cucu-1.3.14}/README.md +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/ansi_parser.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/behave_tweaks.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/browser/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/browser/core.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/browser/frames.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/browser/selenium.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/browser/selenium_tweaks.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/cli/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/cli/run.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/cli/steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/cli/thread_dumper.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/config.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/edgedriver_autoinstaller/README.md +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/edgedriver_autoinstaller/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/edgedriver_autoinstaller/utils.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/environment.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/external/jquery/jquery-3.5.1.min.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/formatter/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/formatter/cucu.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/formatter/json.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/formatter/junit.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/formatter/rundb.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/fuzzy/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/fuzzy/core.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/fuzzy/fuzzy.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/helpers.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/hooks.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/.gitignore +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/README.md +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/cucurc.yml +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/data/www/example.html +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/features/cucurc.yml +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/features/environment.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/features/example.feature +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/features/lint_rules/sid.yaml +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/features/steps/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/init_data/features/steps/my_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/language_server/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/language_server/core.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/lint/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/lint/linter.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/lint/rules/format.yaml +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/logger.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/matcher/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/matcher/core.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/page_checks.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/bootstrap.min.css +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/bootstrap.min.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/dataTables.bootstrap.min.css +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/dataTables.bootstrap.min.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/jquery-3.5.1.min.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/jquery.dataTables.min.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/external/popper.min.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/favicon.png +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/html.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/templates/feature.html +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/templates/flat.html +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/templates/index.html +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/templates/layout.html +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/reporter/templates/scenario.html +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/__init__.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/base_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/browser_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/button_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/checkbox_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/command_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/draggable_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/dropdown_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/file_input_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/filesystem_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/flow_control_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/image_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/input_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/link_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/menuitem_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/platform_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/radio_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/section_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/step_utils.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/tab_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/table_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/tables.js +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/text_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/steps/variable_steps.py +0 -0
- {cucu-1.3.13 → cucu-1.3.14}/src/cucu/utils.py +0 -0
|
@@ -524,6 +524,7 @@ def _generate_report(
|
|
|
524
524
|
report_folder: Path,
|
|
525
525
|
only_failures: False,
|
|
526
526
|
junit_folder: Path | None = None,
|
|
527
|
+
combine: bool = False,
|
|
527
528
|
):
|
|
528
529
|
if report_folder.exists():
|
|
529
530
|
shutil.rmtree(report_folder)
|
|
@@ -531,7 +532,7 @@ def _generate_report(
|
|
|
531
532
|
report_folder.mkdir(parents=True, exist_ok=True)
|
|
532
533
|
|
|
533
534
|
if results_dir.exists():
|
|
534
|
-
consolidate_database_files(results_dir)
|
|
535
|
+
consolidate_database_files(results_dir, combine)
|
|
535
536
|
|
|
536
537
|
report_location = reporter.generate(
|
|
537
538
|
results_dir, report_folder, only_failures=only_failures
|
|
@@ -590,6 +591,12 @@ def _generate_report(
|
|
|
590
591
|
"the same location as --results",
|
|
591
592
|
type=click.Path(path_type=Path),
|
|
592
593
|
)
|
|
594
|
+
@click.option(
|
|
595
|
+
"--combine",
|
|
596
|
+
default=False,
|
|
597
|
+
is_flag=True,
|
|
598
|
+
help="combine multiple cucu_runs into a single report",
|
|
599
|
+
)
|
|
593
600
|
def report(
|
|
594
601
|
results_dir: Path,
|
|
595
602
|
only_failures,
|
|
@@ -597,6 +604,7 @@ def report(
|
|
|
597
604
|
show_skips,
|
|
598
605
|
output: Path,
|
|
599
606
|
junit: Path,
|
|
607
|
+
combine: bool,
|
|
600
608
|
):
|
|
601
609
|
"""
|
|
602
610
|
generate a test report from a results directory
|
|
@@ -627,6 +635,7 @@ def report(
|
|
|
627
635
|
report_folder=output,
|
|
628
636
|
only_failures=only_failures,
|
|
629
637
|
junit_folder=junit,
|
|
638
|
+
combine=combine,
|
|
630
639
|
)
|
|
631
640
|
|
|
632
641
|
|
|
@@ -411,16 +411,23 @@ def get_first_cucu_run_filepath():
|
|
|
411
411
|
return run_record.filepath
|
|
412
412
|
|
|
413
413
|
|
|
414
|
-
def consolidate_database_files(results_dir):
|
|
414
|
+
def consolidate_database_files(results_dir, combine=False):
|
|
415
415
|
# This function would need a more advanced approach with peewee, so for now, keep using sqlite3 for consolidation
|
|
416
416
|
results_path = Path(results_dir)
|
|
417
417
|
target_db_path = results_path / "run.db"
|
|
418
418
|
if not target_db_path.exists():
|
|
419
419
|
create_database_file(target_db_path)
|
|
420
420
|
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
421
|
+
if not combine:
|
|
422
|
+
db_files = [
|
|
423
|
+
db for db in results_path.glob("**/run*.db") if db.name != "run.db"
|
|
424
|
+
]
|
|
425
|
+
else:
|
|
426
|
+
# include all run.db files in all subdirectories
|
|
427
|
+
db_files = [
|
|
428
|
+
db for db in results_path.rglob("run*.db") if db != Path("run.db")
|
|
429
|
+
]
|
|
430
|
+
|
|
424
431
|
tables_to_copy = ["cucu_run", "worker", "feature", "scenario", "step"]
|
|
425
432
|
with sqlite3.connect(target_db_path) as target_conn:
|
|
426
433
|
target_cursor = target_conn.cursor()
|
|
@@ -451,7 +458,7 @@ def consolidate_database_files(results_dir):
|
|
|
451
458
|
)
|
|
452
459
|
target_conn.commit()
|
|
453
460
|
|
|
454
|
-
if db_file.name != "run.db":
|
|
461
|
+
if not combine and db_file.name != "run.db":
|
|
455
462
|
# remove the worker db files
|
|
456
463
|
db_file.unlink()
|
|
457
464
|
|
|
@@ -35,7 +35,7 @@ def run_webserver_for_scenario(ctx, directory, variable):
|
|
|
35
35
|
CONFIG[variable] = str(port)
|
|
36
36
|
|
|
37
37
|
with socket.create_connection(("localhost", port), timeout=5):
|
|
38
|
-
logger.debug(f"Webserver is running at {port=}
|
|
38
|
+
logger.debug(f"Webserver is running at {port=}")
|
|
39
39
|
|
|
40
40
|
def shutdown_webserver(_):
|
|
41
41
|
httpd.shutdown()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|