dutchiexl / BehatHtmlFormatterPlugin

This is a behat plugin to generate HTML reports
MIT License
112 stars 116 forks source link

Not all Features are in report #43

Open Gordiievskyi opened 9 years ago

Gordiievskyi commented 9 years ago

Hi guys,

Behat 3.0.15 Php unit 4.8.3 Tests executes from bamboo unix on slave Windows 7. After nightly build I have report with not all feature in it. In report at the bottom I do not see thouse circlus like you have on screen shots but only the text:

3 features failed of 14 features. 4 scenarios failed of 36 scenarios,35 steps failed of 1479 and then below description for thouse 6 features I see in the body.If you need I can send tar file. Also attached the screenshot and my yml file below.

Clicks on buttons all passed failed do nothing. log

default:
    autoload:
         '': %paths.base%/features/bootstrap
    suites:
        test:
            paths:
                - %paths.base%/features
            contexts:
                - HorseProfileContext
            filters:
                tags: @fakeData,@realData,@brokenTest,@disabledTest
    formatters:
        html:
          output_path: %paths.base%/build/html/behat

    extensions:
        emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
            name: html
            renderer: Twig,Behat2
            file_name: Index
            print_args: true
            print_outp: true
            loop_break: true

Aditional remark: When I run one feature on my local pc(php storm added reporter through composer in storm) report is ok.

Gordiievskyi commented 9 years ago

Guys any idea what can be wrong ?

dutchiexl commented 9 years ago

Can you try using behat or twig instead of both ?

Gordiievskyi commented 9 years ago

ok, will do, results will be tomorrow, asap I get them will let you know

Gordiievskyi commented 9 years ago

Hi again, changed yml to have only twig, now I have 7 feature in report visible of 16. Please look at image.Also circlus didn't appear 7feature nocircle

Gordiievskyi commented 9 years ago

guys any suggestions, ideas ?

dutchiexl commented 9 years ago

Can you check your browser console for errors? It looks like the plugin stops writing records halfway trough the process.

Do you have any errors in the log or something ?

Gordiievskyi commented 9 years ago

Hi ,dutchiexl Just got time on invistigation. Report is broken only in case tests case is failed. When all features pass then report is ok. I've tryied on simple case where I just verifying that tag has some attribure and if aseert fails then I got broken report. Will look deeply what hapenning, but In log there is no strange errors.Below is what is printed to strom console:

Testing started at 7:57 PM ...
Given <page> opens with the <link>
And screen set to <screen resolution>
Then Title of page should be <title>
INFO - PASSED 

INFO - PASSED 

0m12.17s (9.27Mb)

Process finished with exit code 1

Title expected to be 
 Simenon | Form | Racing Post, found 
 Simenon | Race Record & Form | Racing Post
Failed asserting that two strings are equal.
dutchiexl commented 9 years ago

Is anyone havind the same issue, I can't find the problem.

Gordiievskyi commented 8 years ago

sorry for delay with response. The issue happens when there is html tag in feature description

On Mon, Oct 26, 2015 at 9:57 AM, Neal Vanmeert notifications@github.com wrote:

Is anyone havind the same issue, I can't find the problem.

— Reply to this email directly or view it on GitHub https://github.com/dutchiexl/BehatHtmlFormatterPlugin/issues/43#issuecomment-151052957 .