Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare ddlFile as an output and correct option #315

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

thc202
Copy link
Contributor

@thc202 thc202 commented Feb 20, 2022

Change the ddlFile property to be an output file, it's created by the
task, otherwise the user is forced to create an empty file beforehand.
Change the respective option to call the expected setter.
Update the tests accordingly:

  • Do not create the DDL file beforehand to verify that the task does
    not require it;
  • Assert that the file has contents when the task is called with the
    CLI.

Change the `ddlFile` property to be an output file, it's created by the
task, otherwise the user is forced to create an empty file beforehand.
Change the respective option to call the expected setter.
Update the tests accordingly:
 - Do not create the DDL file beforehand to verify that the task does
 not require it;
 - Assert that the file has contents when the task is called with the
 CLI.

Signed-off-by: thc202 <thc202@gmail.com>
@codecov
Copy link

codecov bot commented Feb 21, 2022

Codecov Report

Merging #315 (b7ac2e7) into master (b1fa371) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #315   +/-   ##
=========================================
  Coverage     95.68%   95.68%           
  Complexity      223      223           
=========================================
  Files            22       22           
  Lines           556      556           
  Branches         48       48           
=========================================
  Hits            532      532           
  Misses           10       10           
  Partials         14       14           
Impacted Files Coverage Δ
...radle/tasks/schematool/AbstractSchemaToolTask.java 97.24% <100.00%> (ø)

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 b1fa371...b7ac2e7. Read the comment docs.

@rm3l rm3l self-requested a review March 14, 2022 22:31
Copy link
Owner

@rm3l rm3l left a comment

Choose a reason for hiding this comment

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

@thc202 Thanks for this PR. LGTM 👍🏿

@rm3l rm3l merged commit 7c1267e into rm3l:master Mar 14, 2022
@thc202 thc202 deleted the output-ddl-file branch December 5, 2022 16:04
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