Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mpiasta opened this issue Dec 11, 2020 · 3 comments

Comments

@mpiasta
Copy link

mpiasta commented Dec 11, 2020

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
  1. 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

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

@rmpestano
Copy link
Owner

rmpestano commented Dec 11, 2020

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
Copy link
Author

mpiasta commented Dec 11, 2020

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
Copy link
Author

mpiasta commented Dec 12, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants