Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cucumber JSON reader: better support of dialects #25

Open
4 tasks
delatrie opened this issue Dec 17, 2024 · 0 comments
Open
4 tasks

Cucumber JSON reader: better support of dialects #25

delatrie opened this issue Dec 17, 2024 · 0 comments
Labels
type:improvement New feature or request

Comments

@delatrie
Copy link
Collaborator

delatrie commented Dec 17, 2024

  1. Behave
    • Data tables have a different format:
      {
        "table": {
          "headings": ["a", "b"],
          "rows": [
            ["1", "2"],
            ["3", "4"]
          ]
        }
      }
    • Durations are in seconds:
      { "result": { "status": "passed", "duration": 5.888938903808594e-5 } }
    • Error messages and scenario descriptions are arrays of strings:
      {
        "error_message": [
          "Traceback (most recent call last):",
          "  File \"/allure-examples/start-behave-py3.12-pip/.env/lib/python3.13/site-packages/behave/model.py\", line 1329, in run",
          "    match.run(runner.context)",
          "    ~~~~~~~~~^^^^^^^^^^^^^^^^",
          "  File \"/allure-examples/start-behave-py3.12-pip/.env/lib/python3.13/site-packages/behave/matchers.py\", line 98, in run",
          "    self.func(context, *args, **kwargs)",
          "    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^",
          "  File \"test/steps/welcome_steps.py\", line 13, in step_impl",
          "    assert context.message == \"Hello from examples.allure-behave!!\"",
          "           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^",
          "AssertionError"
        ]
      }
  2. Cucumber-JS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:improvement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant