BehatHtmlFormatterPlugin icon indicating copy to clipboard operation
BehatHtmlFormatterPlugin copied to clipboard

Not all Features are in report

Open Gordiievskyi opened this issue 10 years ago • 9 comments

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 avatar Sep 16 '15 14:09 Gordiievskyi

Guys any idea what can be wrong ?

Gordiievskyi avatar Sep 19 '15 09:09 Gordiievskyi

Can you try using behat or twig instead of both ?

dutchiexl avatar Sep 19 '15 13:09 dutchiexl

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

Gordiievskyi avatar Sep 19 '15 13:09 Gordiievskyi

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 avatar Sep 25 '15 09:09 Gordiievskyi

guys any suggestions, ideas ?

Gordiievskyi avatar Sep 29 '15 11:09 Gordiievskyi

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 ?

dutchiexl avatar Sep 29 '15 11:09 dutchiexl

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.

Gordiievskyi avatar Oct 02 '15 17:10 Gordiievskyi

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

dutchiexl avatar Oct 26 '15 07:10 dutchiexl

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 [email protected] 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 .

Gordiievskyi avatar Feb 26 '16 16:02 Gordiievskyi