Skip to content

Add tests for the CLI #635

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

Merged
merged 7 commits into from
Jul 7, 2019
Merged

Add tests for the CLI #635

merged 7 commits into from
Jul 7, 2019

Conversation

drwl
Copy link
Collaborator

@drwl drwl commented Jul 1, 2019

Currently there's no test coverage on CLI. This adds tests for a new class Parser which will replace the command line options currently in bin/annotate.

The technical direction I'm planning to go is to remove ENV variables completely and to have things passed into as arguments. Will be adding deprecation warnings in 3.0 and then deprecate ENV variables completely in 3.1. Deprecation warnings will be non-blocking in 3.0 when an ENV variable is set and an argument isn't passed in, and will becoming blocking in 3.1.

@drwl drwl added the refactor label Jul 1, 2019
@drwl drwl added this to the v3.0.0 milestone Jul 3, 2019
@drwl drwl force-pushed the drwl/test-options branch from 10d2f54 to 2e746ae Compare July 7, 2019 02:45
drwl added 7 commits July 6, 2019 19:46
The Parser class name is also used in the Parser gem. Namespacing the Parser to prevent collisions.
The position flag sets the same value for file types (fixture, models, etc.) if it's not already set. Add a spec to test this behavior.
@drwl drwl force-pushed the drwl/test-options branch from 2e746ae to e48cb2b Compare July 7, 2019 02:46
@drwl
Copy link
Collaborator Author

drwl commented Jul 7, 2019

@ctran I'll be merging this in

@drwl drwl merged commit f612f8a into develop Jul 7, 2019
@drwl drwl deleted the drwl/test-options branch July 7, 2019 21:26
peterfication pushed a commit to store2be/annotate_models that referenced this pull request Jan 20, 2020
Currently there's no test coverage on CLI. This adds tests for a new class Parser which will replace the command line options currently in bin/annotate.

The technical direction I'm planning to go is to remove ENV variables completely and to have things passed into as arguments. Will be adding deprecation warnings in 3.0 and then deprecate ENV variables completely in 3.1. Deprecation warnings will be non-blocking in 3.0 when an ENV variable is set and an argument isn't passed in, and will becoming blocking in 3.1.
vfonic pushed a commit to vfonic/annotate_models that referenced this pull request May 8, 2020
Currently there's no test coverage on CLI. This adds tests for a new class Parser which will replace the command line options currently in bin/annotate.

The technical direction I'm planning to go is to remove ENV variables completely and to have things passed into as arguments. Will be adding deprecation warnings in 3.0 and then deprecate ENV variables completely in 3.1. Deprecation warnings will be non-blocking in 3.0 when an ENV variable is set and an argument isn't passed in, and will becoming blocking in 3.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant