Skip to content
This repository has been archived by the owner on Mar 11, 2021. It is now read-only.

Change test file exclude pattern #2135

Merged
merged 4 commits into from Jun 28, 2018

Conversation

jarifibrahim
Copy link
Member

@jarifibrahim jarifibrahim commented Jun 27, 2018

Fixes #2134

Tests from the following packages will also be executed

  1. github.com/fabric8-services/fabric8-wit/application
  2. github.com/fabric8-services/fabric8-wit/application/repository
  3. github.com/fabric8-services/fabric8-wit/gormapplication

@@ -199,7 +199,7 @@ func (s *BenchDbOperations) BenchmarkGormSelectSpaceRaw() {
&sp.Version,
&sp.Name,
&sp.Description,
&sp.OwnerId)
Copy link
Member Author

Choose a reason for hiding this comment

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

This error was always there but since this file was ignored by go build it was never caught.

@codecov-io
Copy link

codecov-io commented Jun 27, 2018

Codecov Report

Merging #2135 into master will increase coverage by 0.06%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2135      +/-   ##
==========================================
+ Coverage   69.23%   69.29%   +0.06%     
==========================================
  Files         163      165       +2     
  Lines       15185    15238      +53     
==========================================
+ Hits        10513    10559      +46     
- Misses       3720     3725       +5     
- Partials      952      954       +2
Impacted Files Coverage Δ
application/repository/exister.go 88.88% <0%> (ø)
application/transaction.go 85.71% <0%> (ø)

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 9bdf460...8b9c7f3. Read the comment docs.

Copy link
Contributor

@baijum baijum left a comment

Choose a reason for hiding this comment

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

Need clarification on pattern.

@@ -118,7 +118,7 @@ DOCKER_COMPOSE_BIN_ALT = $(TMP_PATH)/docker-compose
DOCKER_COMPOSE_FILE = $(CUR_DIR)/.make/docker-compose.integration-test.yaml

# This pattern excludes some folders from the coverage calculation (see grep -v)
ALL_PKGS_EXCLUDE_PATTERN = 'vendor\|account\/tenant\|app\|tool\/cli\|design\|client\|test'
ALL_PKGS_EXCLUDE_PATTERN = "vendor\|account\/tenant\|app\'\|tool\/cli\|design\|client\|test"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why single quote is escaped here?
Why forward slash is escaped after account? That should be a pipe character, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

@baijum

Why single quote is escaped here?

The regex pattern is grep specific. The \' in this case matches the end of input. Please see https://www.gnu.org/software/findutils/manual/html_node/find_html/grep-regular-expression-syntax.html

Why forward slash is escaped after account? That should be a pipe character, right?

account is not ignored but account/tenant is ignored. I do not know why it is ignored.

Copy link
Contributor

Choose a reason for hiding this comment

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

@jarifibrahim Thanks for the clarification!

Copy link
Contributor

@baijum baijum left a comment

Choose a reason for hiding this comment

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

LGTM

@jarifibrahim jarifibrahim merged commit 6f6cd3c into fabric8-services:master Jun 28, 2018
@jarifibrahim jarifibrahim deleted the issue-2134 branch June 28, 2018 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants