-
Notifications
You must be signed in to change notification settings - Fork 103
Iss54/extract asciidoc reporter #1940
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
Changes from 3 commits
025cf01
0e1cc8e
8a50fb5
1aef9aa
3a17934
118d1d7
fc444c1
e1a2f14
31774b0
ff33ab4
a20a5a7
c10eec1
abf222e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # AsciiDoc Report | ||
|
|
||
| For text-based report output | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| plugins { | ||
| id 'java-library' | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation libs.guava | ||
| implementation libs.slf4j.api | ||
| implementation project(':jgiven-core') | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package com.tngtech.jgiven.report; | ||
|
|
||
| import com.tngtech.jgiven.report.config.ConfigOption; | ||
| import java.io.File; | ||
| import java.util.List; | ||
| import java.util.Map; | ||
| import org.junit.Test; | ||
|
|
||
| import static org.assertj.core.api.Assertions.assertThat; | ||
|
|
||
| public class ReportConfigArgumentTest { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the former |
||
|
|
||
| @Test | ||
| public void testArgumentParsing() { | ||
| var testConfig = new AbstractReportConfig("--sourceDir=source/dir", "--targetDir=target/dir") { | ||
|
|
||
| @Override | ||
| public void useConfigMap(Map<String, Object> configMap) { | ||
| } | ||
|
|
||
| @Override | ||
| public void additionalConfigOptions(List<ConfigOption> configOptions) { | ||
| } | ||
| }; | ||
|
|
||
| assertThat(testConfig.getSourceDir()).isEqualTo(new File("source/dir")); | ||
| assertThat(testConfig.getTargetDir()).isEqualTo(new File("target/dir")); | ||
| } | ||
| } | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.