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

Gauge messages in hooks are not displayed #59

Closed
sswaroopgupta opened this issue Apr 23, 2018 · 1 comment
Closed

Gauge messages in hooks are not displayed #59

sswaroopgupta opened this issue Apr 23, 2018 · 1 comment
Assignees
Labels

Comments

@sswaroopgupta
Copy link
Contributor

Expected behavior
The messages in hooks should be displayed

Actual behavior
The message from step hooks are displayed but others are not

Steps to replicate

  • Create a gauge-python project
  • Add hook messages

@before_scenario()
def before_scenario_hook():
    assert "".join(vowels) == "aeiou"
    Messages.write_message("before scenario")

@before_step
def before_step_hook():
    Messages.write_message("before step hook")

@after_step
def after_step_hook():
    Messages.write_message("after step hook")

@before_scenario
def before_scenario_hook1():
    Messages.write_message("before scenario hook")

@after_scenario
def after_scenario_hook():
    Messages.write_message("after scenario hook")

@before_spec
def before_spec_hook():
    Messages.write_message("before spec hook")

@after_spec
def after_spec_hook():
    Messages.write_message("after spec hook")

@before_suite
def before_suite_hook():
    Messages.write_message("before suite hook")

@after_suite
def after_spec_hook1():
    Messages.write_message("after suite hook")
  • Run the specs

In the html-report, only step hooks are displayed

Version

Gauge version: 0.9.8.nightly-2018-04-19
Commit Hash: 58298e2

Plugins
-------
html-report (4.0.4.nightly-2018-04-11)
java (0.6.7.nightly-2018-04-19)
python (0.3.0.nightly-2018-04-18)
ruby (0.5.0.nightly-2018-04-16)
xml-report (0.2.1.nightly-2018-04-05)
PS <user>> pip show getgauge
Name: getgauge
Version: 0.3.0.dev20180418
Summary: Enables Python support for Gauge
Home-page: https://github.com/getgauge/gauge-python
Author: Gauge Team
Author-email: getgauge@outlook.com
License: MIT
Location: c:\python36\lib\site-packages
Requires: protobuf, redBaron, ptvsd, grpcio
You are using pip version 9.0.2, however version 10.0.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
@zabil zabil added in progress and removed ready labels May 16, 2018
NivedhaSenthil added a commit that referenced this issue May 16, 2018
- defining wraper for before and after suite hooks, to be used as decorators
- processing custom messages in hooks
@NivedhaSenthil
Copy link
Member

Fix should be available in nightly >= 17/05/2018

nehashri pushed a commit that referenced this issue May 17, 2018
- defining wraper for before and after suite hooks, to be used as decorators
- processing custom messages in hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants