Skip to content

Commit

Permalink
Merge branch 'develop' into feature/endToEndTests-Rework
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaglam authored Oct 4, 2023
2 parents 3a496fe + 23a12dc commit 4190ccc
Show file tree
Hide file tree
Showing 72 changed files with 1,801 additions and 1,325 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Set version of Report Viewer
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Set version of Report Viewer
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Install and Test 🧪
working-directory: report-viewer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/report-viewer-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Report Viewer ESLint Workflow # Checks linting of report viewer
on:
workflow_dispatch:
push:
path:
paths:
- ".github/workflows/report-viewer-lint.yml"
- "report-viewer/**"
pull_request:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Install and Lint 🎨
working-directory: report-viewer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Install and Check 🎨
working-directory: report-viewer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Install and Test 🧪
working-directory: report-viewer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/report-viewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18"

- name: Set version of Report Viewer
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion cli/src/main/java/de/jplag/cli/CliOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class CliOptions implements Runnable {
"--result-directory"}, description = "Name of the directory in which the comparison results will be stored (default: result)%n")
public String resultFolder = "results";

@ArgGroup(heading = "Advanced%n")
@ArgGroup(heading = "Advanced%n", exclusive = false)
public Advanced advanced = new Advanced();

@ArgGroup(validate = false, heading = "Clustering%n")
Expand Down
23 changes: 23 additions & 0 deletions cli/src/test/java/de/jplag/cli/AdvancedGroupTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package de.jplag.cli;

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.Arrays;

import org.junit.jupiter.api.Test;

class AdvancedGroupTest extends CommandLineInterfaceTest {
private static final String SUFFIXES = ".sc,.scala";

private static final double SIMILARITY_THRESHOLD = 0.5;

/**
* Verify that it is possible to set multiple options in the "advanced" options group.
*/
@Test
void testNotExclusive() throws CliException {
buildOptionsFromCLI(defaultArguments().suffixes(SUFFIXES).similarityThreshold(SIMILARITY_THRESHOLD));
assertEquals(Arrays.stream(SUFFIXES.split(",")).toList(), options.fileSuffixes());
assertEquals(0.5, options.similarityThreshold());
}
}
Loading

0 comments on commit 4190ccc

Please sign in to comment.