baev / allure-cli-depricated

Allure Command Line Tool
Other
20 stars 7 forks source link

Should :severity tag work with -v 1.3.9? #22

Closed dmhalejr closed 10 years ago

dmhalejr commented 10 years ago

All,

Does the :severity tag work on 1.3.9? I can't seem to get it populate correctly when that is the default version used with the rspec adapter.

Installed by homebrew

Environment:

OSX 10.10

Ruby:

it 'elements loaded', :demo => true, :story => 'Elements Loaded', :smoke => true, :audience => true, :severity => :normal do
    expect(@audience.all_elements_present?).to be_truthy
end

XML:

<?xml version="1.0"?>
<ns2:test-suite xmlns="" xmlns:ns2="urn:model.allure.qatools.yandex.ru" start="1414097598763" stop="1414097619621">
  <name>Audience</name>
  <title>Audience</title>
  <test-cases>
    <test-case start="1414097598763" stop="1414097619621" status="passed">
      <name>elements loaded</name>
      <title>elements loaded</title>
      <steps/>
      <attachments/>
      <labels>
        <label name="feature" value="Audience"/>
        <label name="severity" value="normal"/>
        <label name="story" value="Elements Loaded"/>
      </labels>
      <parameters/>
    </test-case>
  </test-cases>
  <labels>
    <label name="feature" value="Audience"/>
    <label name="severity" value="trivial"/>
  </labels>
</ns2:test-suite>

On 1.3.9: screen shot 2014-10-23 at 4 23 11 pm

On 1.4.0: screen shot 2014-10-23 at 4 22 25 pm

Let me know if there is anything else you need from me!

baev commented 10 years ago

Your model version is 1.4.0. Since 1.4 severity moved from element to labels. See https://github.com/allure-framework/allure-core/releases/tag/allure-core-1.4.0.RC1 (Breaking Changes)

vania-pooh commented 10 years ago

Summon @smecsia. I think all Ruby stuff only supports 1.4.x.

smecsia commented 10 years ago

That's true. Allure Ruby adapters do not support versions older than 1.4.x. @dmhalejr I suppose you should use the corresponding Allure report generation stuff. @vania-pooh Do we have the newer version of Allure within homebrew repositories?

vania-pooh commented 10 years ago

@smecsia yep, we have Allure CLI 2.1 there.

baev commented 10 years ago

Does the :severity tag work on 1.3.9? I can't seem to get it populate correctly when that is the default version used with the rspec adapter.

Rspec adapter supports only allure 1.4.* Allure CLI always generate report 1.3.9 by default. Just specify allure version 1.4.9

dmhalejr commented 10 years ago

@baev @smecsia @vania-pooh I'll make sure to make that distinction from now on. Thanks for the clarification and also the hard work on this framework! :+1: