Skip to content

Commit

Permalink
feature: Add support robotframework-tidy
Browse files Browse the repository at this point in the history
The reporter will ignore `IF`, `ELSE IF`, `ELSE`, and `END` keywords.
  • Loading branch information
gibiw committed Aug 28, 2024
1 parent 963656e commit 7ee6f90
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions qase-robotframework/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# qase-pytest 3.1.1b1

## What's new

Add support `robotframework-tidy` to the reporter.
The reporter will ignore `IF`, `ELSE IF`, `ELSE`, and `END` keywords.

# qase-pytest 3.1.0

## What's new
Expand Down
2 changes: 1 addition & 1 deletion qase-robotframework/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "qase-robotframework"
version = "3.1.0"
version = "3.1.1b1"
description = "Qase Robot Framework Plugin"
readme = "README.md"
authors = [{name = "Qase Team", email = "[email protected]"}]
Expand Down
6 changes: 6 additions & 0 deletions qase-robotframework/src/qase/robotframework/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def end_test(self, name, attributes: EndTestModel):
)

def start_keyword(self, name, attributes):
if attributes["type"] != "KEYWORD" or attributes["status"] == "NOT RUN":
return

id = str(uuid.uuid4())
step = Step(
step_type=StepType.GHERKIN,
Expand All @@ -100,6 +103,9 @@ def start_keyword(self, name, attributes):
self.step_uuid = id

def end_keyword(self, name, attributes):
if attributes["type"] != "KEYWORD" or attributes["status"] == "NOT RUN":
return

self.runtime.finish_step(self.step_uuid, STATUSES[attributes["status"]])
self.step_uuid = self.runtime.steps[self.step_uuid].parent_id

Expand Down

0 comments on commit 7ee6f90

Please sign in to comment.