question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extra spaces and tabs in docstring display fro cucumber adapter for extent version 4.1.x

See original GitHub issue

This is in continuation of this issue https://github.com/extent-framework/extentreports-cucumber4-adapter/issues/60#issuecomment-660677316

Getting 2 spaces for the first line in docstring display using the MarkupHelper.createCodeBlock for extent version 4.1.7. Get an extra tab for versions 4.1.6 and below. In BOTH cases there is an extra new line at the bottom. This works perfectly in extent version 5-snapshot.

Link to the relevant code (docstring branch) with print statements included - https://github.com/grasshopper7/extentreports-cucumber5-adapter/blob/b3a0a6226d831a24bf20f82fad8ab1ac5e6b170f/extentreports-cucumber5-adapter/src/main/java/com/aventstack/extentreports/cucumber/adapter/ExtentCucumberAdapter.java#L463

Version 4.1.7

Console output - Extra 2 spaces for the first line in markup output

--Original Doc String------
Hello there how r u?

Doing great.
Whats new?
--Markup Doc String------
<textarea readonly class='code-block'>
  Hello there how r u?

Doing great.
Whats new?
</textarea>

Browser output - docstring-extent-4 1 7

Version 4.1.6 and below

Console output - Additional tab for the first line in markup output

--Original Doc String------
Hello there how r u?

Doing great.
Whats new?
--Markup Doc String------
<textarea readonly class='code-block'>
	Hello there how r u?

Doing great.
Whats new?
</textarea>

Browser output - docstring-extent-4

For reference adding

Version 5

Console output -

Hello there how r u?

Doing great.
Whats new?
--Markup Doc String------
<textarea readonly class='code-block'>Hello there how r u?

Doing great.
Whats new?</textarea>

Browser output - docstring-extent-5snap

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
grasshopper7commented, Jul 24, 2020

Will try to update both in a couple of days.

Can u check the wiki. The version number of the klov reporter seems to be missing, instead a maven property placeholder is used. https://github.com/extent-framework/extentreports-java/wiki/KlovReporter

<groupId>com.aventstack</groupId>
<artifactId>klov-reporter</artifactId>
<version>${klov-reporter.version}</version>
0reactions
anshooaroracommented, Jul 24, 2020

Release v5 is ready. Please update 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

extentreports-cucumber4-adapter | Extent Framework
To begin using the adapter, add the com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter plugin to the runner. @RunWith(Cucumber.
Read more >
Cucumber: How To Setup Extent Report Adapter HTML & PDF ...
Cucumber #ExtentReports #BDD #EclipseHi everyone Jahmal here! Welcome back to the channel and in today's video I will be showing you how you ......
Read more >
Working with Extent Report 4 for Cucumber with Selenium Java
In this video, we will discuss Working with Extent Report 4 for ... by Extent reporting and how it differs from previous version...
Read more >
GitHub - extent-framework/extentreports-cucumber4-adapter
To begin using the adapter, add the com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter plugin to the runner. @RunWith(Cucumber.class) ...
Read more >
How to Implement Cucumber Extent Report in Framework
Right Click on TestRunner class and Click Run As >> JUnit Test. Cucumber will run the script the same way it runs in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found