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

[Feature] Flag to set the target #11

Closed
1 task done
JCZuurmond opened this issue Jun 1, 2022 · 0 comments · Fixed by #13
Closed
1 task done

[Feature] Flag to set the target #11

JCZuurmond opened this issue Jun 1, 2022 · 0 comments · Fixed by #13
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@JCZuurmond
Copy link
Collaborator

Is this your first time opening an issue?

Describe the Feature

Add a flag to set the target.

Describe alternatives you've considered

Do not set a specific target, use the default target

Who will this benefit?

Everyone who does not want to use the default target

Are you interested in contributing this feature?

yes

Anything else?

Add flag to plugin:

# src/pytest_dbt_core/plugin.py
...
def pytest_addoption(...):
    ....
    
    parser.addoption(
        "--dbt-target",
        help="Which target to load for the given profile",
        type="string",
    )

And test in the example project in tests/

@JCZuurmond JCZuurmond added the enhancement New feature or request label Jun 1, 2022
@JCZuurmond JCZuurmond self-assigned this Jun 1, 2022
@JCZuurmond JCZuurmond mentioned this issue Jun 1, 2022
4 tasks
@JCZuurmond JCZuurmond added this to the 0.1.0 milestone Jun 1, 2022
JCZuurmond added a commit that referenced this issue Jul 22, 2022
- Run test examples from docs ([issue](#14), [PR](#17))
- Add target flag ([issue](#11), [PR](#13))
- Delete session module [is included in dbt-spark](dbt-labs/dbt-spark#272)
- Add Github templates
JCZuurmond added a commit that referenced this issue Jul 22, 2022
- Run test examples from docs ([issue](#14), [PR](#17))
- Add target flag ([issue](#11), [PR](#13))
- Delete session module [is included in dbt-spark](dbt-labs/dbt-spark#272)
- Add Github templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant