Skip to content
This repository was archived by the owner on Oct 16, 2019. It is now read-only.
This repository was archived by the owner on Oct 16, 2019. It is now read-only.

[BUG] Hook are not trigger in the good order #49

@eskignax

Description

@eskignax

Hello !
I am facing this issue that the hook are not trigger in the good order.

spec_helper.rb

RSpec.configure do |config|
  config.include AllureRSpec::Adaptor

  config.before(:suite) do
    puts 'Before Suite Spec helper'
  end

  config.before(:all) do
    puts 'Before all Spec helper'
  end
end

foo_spec.rb

require 'spec_helper'

describe 'When I test allure rspec' do
  before(:all) do
    puts 'Before all in foo spec'
  end

  it 'should do something' do
    puts 'In the test'
    expect(true).not_to be_nil
  end
end

Current result 👎

Cleaning output directory 'gen/allure-results'...
Before Suite Spec helper
Before all in foo spec
Before all Spec helper
In the test

Expected result 👍

Before Suite Spec helper
Before all Spec helper
Before all in foo spec
In the test

Can you please have a look at it ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions