rmpestano / cukedoctor

BDD living documentation using Cucumber and Asciidoctor: https://goo.gl/Yp3NiU
https://rmpestano.github.io/cukedoctor/
Apache License 2.0
122 stars 23 forks source link

Using Cukedoctor with localisation tag does not render custom section layout [# language: pl] #174

Open mpiasta opened 3 years ago

mpiasta commented 3 years ago

Hello, Am I doing something wrong or this is a bug? I tried a few configurations of Cukedoctor but all resulted in the same output. The section tags are rendered as scenario tags, while having the following setup:

  1. Feature file that starts as follows

    # language: pl
    @section-Dinosaurs
    @order-10
    Funkcja: Praca w trybie offline
  2. cukedoctor.properties with following setup

    
    #sections
    title.features = Funkcje
    title.summary = Podsumowanie
    title.scenario = Scenario

summary

summary.steps = Kroki summary.total = Totals summary.duration = Duration

result

result.passed = Passed result.failed = Failed result.skipped = Skipped result.pending = Pending result.undefined= Undefined result.missing = Missing


I end up with something like that - both section naming and ordering seems to be not parsed:
![image](https://user-images.githubusercontent.com/72794167/101909477-d696d900-3bbd-11eb-88f9-13dbdefba486.png)

Swapping language row with section tags (so that they are first thing rendered in the file) freaks cucumber out.
rmpestano commented 3 years ago

Hello, I'm not sure what's going on.

You're using the section layout, right? Are you adding the section-layout dependency as well?

If you can you share a sample project I can have a look

mpiasta commented 3 years ago

Hello, Thanks. Yes, I'm trying to use the section layout. I've compiled and pushed a sample small project here: https://github.com/mpiasta/cukedoctor_sections_test And I'm attaching a sample PDF output along with adoc that it was generated from. docs.zip

I'm trying to reach a setup where the sections will be moved to top level with given title instead of being nested under Features section: image

One more question: is it possible to not render all scenario outline examples in the table of contents as separate pages? (in attached example there are 3 entries that look exactly the same)

mpiasta commented 3 years ago

Found it. Shouldn't code on Friday afternoon;) I was missing a dependency.

</executions>
        <dependencies>
          <dependency>
            <groupId>com.github.cukedoctor</groupId>
            <artifactId>cukedoctor-section-layout</artifactId>
            <version>3.5.1</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>

image