Skip to content

Commit

Permalink
Fixing issue #77, about scenario detection not working for Non-Englis…
Browse files Browse the repository at this point in the history
…h languages
  • Loading branch information
anibalinn committed Jun 14, 2023
1 parent 7fe8356 commit a31d1fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ Version History
Version: 2.0.2
-------------------------------------------------------------------------------
ENHANCEMENTS:
* HTML Report layout improvements to properly render long gherkin steps and failure messages
* HTML Report layout improvements to properly render long gherkin steps and failure messages. `Issue #81 <https://github.com/hrcorval/behavex/issues/81>`_


FIXES:

* Fix done when logging exceptions in environment.py module
* Fix done when detecting scenarios (Scenario detection does not work for Non-English languages). `Issue #77 <https://github.com/hrcorval/behavex/issues/77>`_

Version: 2.0.1
-------------------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion behavex/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from tempfile import gettempdir

from behave import __main__ as behave_script
from behave.model import ScenarioOutline

# noinspection PyUnresolvedReferences
import behavex.outputs.report_json
Expand Down Expand Up @@ -252,7 +253,7 @@ def create_scenario_line_references(features):
sce_lines[text(feature.filename)] = {}
feature_lines = sce_lines[text(feature.filename)]
for scenario in feature.scenarios:
if scenario.keyword == u'Scenario':
if not isinstance(scenario, ScenarioOutline):
feature_lines[scenario.name] = scenario.line
else:
for scenario_multiline in scenario.scenarios:
Expand Down

0 comments on commit a31d1fd

Please sign in to comment.