Skip to content

Story/145 tags filter removes too many items#160

Merged
redcatbear merged 8 commits into
developfrom
story/145-Tags_filter_removes_too_many_items
Jul 14, 2018
Merged

Story/145 tags filter removes too many items#160
redcatbear merged 8 commits into
developfrom
story/145-Tags_filter_removes_too_many_items

Conversation

@redcatbear

Copy link
Copy Markdown
Collaborator

No description provided.

@redcatbear
redcatbear requested a review from kaklakariada July 10, 2018 20:08
@codecov

codecov Bot commented Jul 10, 2018

Copy link
Copy Markdown

Codecov Report

Merging #160 into develop will increase coverage by 0.05%.
The diff coverage is 73.33%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop     #160      +/-   ##
=============================================
+ Coverage      93.72%   93.77%   +0.05%     
- Complexity       958      988      +30     
=============================================
  Files            105      105              
  Lines           2695     2717      +22     
  Branches         225      231       +6     
=============================================
+ Hits            2526     2548      +22     
+ Misses           113      111       -2     
- Partials          56       58       +2
Impacted Files Coverage Δ Complexity Δ
...org/itsallcode/openfasttrace/cli/CliArguments.java 92.45% <ø> (+3.77%) 30 <0> (+1) ⬆️
...enfasttrace/importer/SpecificationListBuilder.java 100% <100%> (ø) 39 <0> (+2) ⬆️
...nfasttrace/importer/markdown/MarkdownImporter.java 100% <100%> (ø) 52 <0> (+1) ⬆️
...de/openfasttrace/cli/commands/AbstractCommand.java 70.83% <56.25%> (-29.17%) 7 <4> (+3)
...a/org/itsallcode/openfasttrace/FilterSettings.java 94% <88.88%> (+1.14%) 27 <4> (+4) ⬆️
...code/openfasttrace/cli/CommandLineInterpreter.java 89.77% <0%> (+1.13%) 34% <0%> (+1%) ⬆️
.../openfasttrace/core/xml/ContentHandlerAdapter.java 93.54% <0%> (+3.22%) 10% <0%> (+2%) ⬆️
...sttrace/importer/RegexMatchingImporterFactory.java 73.07% <0%> (+7.69%) 8% <0%> (+2%) ⬆️
...de/openfasttrace/importer/markdown/Transition.java 100% <0%> (+9.09%) 6% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de885f7...4e59a12. Read the comment docs.

@redcatbear redcatbear added this to the 1.1.0 milestone Jul 11, 2018
@Test
public void testWithoutFilter()
{
this.exit.checkAssertionAfterwards(new Assertion()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use a lambda expression here? Then ITestCliWithFilter. should not be necessary.
If lambdas are not possible as a parameter: extract a method that accepts a lambda.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed: with pleasure. :-)

public void testSetWantedTagsIncludingNone()
{
final String value = "_,client,server";
assertThat(BEFORE_SETTER, this.arguments.getWantedTags(), emptyIterable());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could move this to the setup method.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improved by moving to separate test.


protected void writeTextFile(final File file, final String content) throws IOException
{
final PrintWriter writer = new PrintWriter(file);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to specify the encoding for the print writer? Else the encoding might depend on the platform.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@redcatbear
redcatbear merged commit f72d2ae into develop Jul 14, 2018
@redcatbear
redcatbear deleted the story/145-Tags_filter_removes_too_many_items branch July 14, 2018 10:59
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

Successfully merging this pull request may close these issues.

2 participants