Feature/#165 file and line number in report#172
Conversation
| { | ||
| this.reportService.reportTraceToPath(trace, output, format, this.verbosity, this.newline); | ||
| this.reportService.reportTraceToPath(trace, output, format, this.verbosity, this.newline, | ||
| this.showOrigin); |
There was a problem hiding this comment.
This argument list gets longer and longer. Maybe introduce a parameter object?
Codecov Report
@@ Coverage Diff @@
## develop #172 +/- ##
=============================================
+ Coverage 94.31% 94.44% +0.12%
- Complexity 1004 1045 +41
=============================================
Files 106 108 +2
Lines 2745 2879 +134
Branches 231 243 +12
=============================================
+ Hits 2589 2719 +130
- Misses 98 103 +5
+ Partials 58 57 -1
Continue to review full report at Codecov.
|
|
@kaklakariada: implemented your change. Reworked the API in the course. Updated samples in the user giude. Please review again. |
|
|
||
| protected List<SpecificationItem> importItems() | ||
| { | ||
| this.oft.addInputs(this.toPaths(this.arguments.getInputs())); |
There was a problem hiding this comment.
It would be possible to add the inputs to the ImportSettings class?
|
|
||
| public class OftRunner implements Oft | ||
| { | ||
| private final List<Path> inputs = new ArrayList<>(); |
There was a problem hiding this comment.
Moving inputs to the ImportSettings would make this class stateless
| import org.junit.Test; | ||
|
|
||
| /** | ||
| * This class implements a parameter object to control the settings of OFT's |
There was a problem hiding this comment.
Comment does not fit to class (only mentioned once)
There was a problem hiding this comment.
Removed from test.
|
@kaklakariada, please check again. |
| */ | ||
| public Builder addInputs(final Path... inputs) | ||
| { | ||
| for (final Path input : inputs) |
There was a problem hiding this comment.
You could do: this.addInputs(asList(inputs));
There was a problem hiding this comment.
That would add another Import and creates an intermediate ArrayList so I consider this solution better here.
@kaklakariada please review