Skip to content

Commit

Permalink
QE-16325 Increase the log level of scheduling a feature file (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddl-xin authored Jul 30, 2024
1 parent 2cd44a2 commit a96f559
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project closely adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.200.0
- change - increase the log level of scheduling a feature file

## 0.199.0
- chore - remove deprecated CI
- chore - add PR template
Expand Down
11 changes: 8 additions & 3 deletions features/cli/run_with_workers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ Feature: Run with workers
Given I run the command "cucu run data/features/slow_features --workers 4 --generate-report --report {CUCU_RESULTS_DIR}/generate_report_with_workers_report --results {CUCU_RESULTS_DIR}/generate_report_with_workers_results" and expect exit code "0"
Then I should see a file at "{CUCU_RESULTS_DIR}/generate_report_with_workers_report/index.html"

Scenario: User gets only dots in the output when running with workers
Scenario: User gets scheduling info and dots in the output when running with workers
Given I run the command "cucu run data/features/slow_features --workers 3 --results {CUCU_RESULTS_DIR}/dots_in_report_with_workers_results" and save stdout to "STDOUT" and expect exit code "0"
Then I should see "{STDOUT}" is equal to the following:
Then I should see "{STDOUT}" matches the following:
"""
.....
.* INFO scheduled feature file .*
.* INFO scheduled feature file .*
.* INFO scheduled feature file .*
.* INFO scheduled feature file .*
.* INFO scheduled feature file .*
\.\.\.\.\.
"""

Scenario: User gets progress even when a step is in a retry() block
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cucu"
version = "0.199.0"
version = "0.200.0"
license = "MIT"
description = "Easy BDD web testing"
authors = ["Domino Data Lab <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/cucu/cli/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def runtime_exit():
},
task_timeout=float(feature_timeout),
)
logger.debug(f"scheduled feature file {feature_filepath}")
logger.info(f"scheduled feature file {feature_filepath}")

# poll while we have running tasks until the overall time limit
task_failed = {}
Expand Down

0 comments on commit a96f559

Please sign in to comment.