Skip to content

Conversation

GrayFlash
Copy link
Member

closes #348

@GrayFlash GrayFlash requested a review from mabdh May 30, 2022 05:28
"github.com/stretchr/testify/assert"
)

func TestDiscoverPlugins(t *testing.T) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@mabdh I need some context arounf plugins/external directory, around its usecase, and requirements. Anything in docs/previous-PR/issue/discussion??

Copy link
Member

Choose a reason for hiding this comment

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

@GrayFlash I don't really aware of the docs about it, maybe @ravisuhag or @StewartJingga has more context with that.

@@ -1,3 +1,6 @@
//go:build plugins
// +build plugins

Copy link
Member Author

@GrayFlash GrayFlash May 30, 2022

Choose a reason for hiding this comment

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

Added plugins tags for tableau and bigquery tests, because we test extractors separately.
cc @mabdh

@GrayFlash GrayFlash self-assigned this May 31, 2022
@GrayFlash GrayFlash marked this pull request as ready for review June 1, 2022 04:18
@GrayFlash
Copy link
Member Author

@mabdh @StewartJingga @scortier any suggestions for further improving the code coverage?? Most of the files with low coverage that I can see at the moment are the ones where we can't test a given set of functions with mocks or may require setting up a service (like bigquery, tableau, etc).

@mabdh
Copy link
Member

mabdh commented Jun 2, 2022

@GrayFlash this is already good enough to have 75 % code coverage.

Have you seen the coverage report here? https://coveralls.io/github/odpf/meteor?branch=improve-code-coverage
apart from plugins files there are several packages that could be improved.

for example:

  • registry
  • plugins/external

@GrayFlash
Copy link
Member Author

@mabdh have worked on increasing the coverage across the agent, registry and recipe package, by adding tests for Validation functions as well. Please check it once.

@mabdh mabdh merged commit 4dba2f7 into main Jun 3, 2022
@mabdh mabdh deleted the improve-code-coverage branch June 3, 2022 06:18
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.

Increase coverage to 80%
2 participants