-
Notifications
You must be signed in to change notification settings - Fork 202
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
Feat/test harness #138
Feat/test harness #138
Conversation
@@ -112,10 +117,14 @@ pub async fn execute(args: Args) -> anyhow::Result<()> { | |||
added_specs.push(spec); | |||
} | |||
|
|||
// TODO why is this only needed in the test? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this cleared up now?
Looks good to me! Needs a rebase? |
I think it would be nice if you can pass the pixi.init(Default::default()) but if you want to use some obscure argument you can do: pixi.init(Args {
some_obscure_arg: 42,
.. Default::default()
}) |
Yeah but from the cli you do not want to pass in the project by default
right? That’s why I split up the functions because it accepts a specific
project to work from
…On Fri, 23 Jun 2023 at 17:05, Bas Zalmstra ***@***.***> wrote:
I think it would be nice if you can pass the Args object to the different
functions. That would make it easier to call the function with specific
optional arguments. E.g. by default you'd do:
pixi.init(Default::default())
but if you want to use some obscure argument you can do:
pixi.init(Args {
some_obscure_arg: 42,
.. Default::default()
})
—
Reply to this email directly, view it on GitHub
<#138 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADF4XRTVPE3R5HXWICGRI3XMWWE7ANCNFSM6AAAAAAZRQSFFY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Seeing as the Arg structure is coupled to the CLI functions
…On Fri, 23 Jun 2023 at 17:57, Tim de Jager ***@***.***> wrote:
Yeah but from the cli you do not want to pass in the project by default
right? That’s why I split up the functions because it accepts a specific
project to work from
On Fri, 23 Jun 2023 at 17:05, Bas Zalmstra ***@***.***>
wrote:
> I think it would be nice if you can pass the Args object to the
> different functions. That would make it easier to call the function with
> specific optional arguments. E.g. by default you'd do:
>
> pixi.init(Default::default())
>
> but if you want to use some obscure argument you can do:
>
> pixi.init(Args {
> some_obscure_arg: 42,
> .. Default::default()
> })
>
> —
> Reply to this email directly, view it on GitHub
> <#138 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AADF4XRTVPE3R5HXWICGRI3XMWWE7ANCNFSM6AAAAAAZRQSFFY>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
I think that can still be achieved through the Maybe it's also fine if the project is loaded on demand when using But concretely I ran into this issue because I would like to add a pixi.init(init::Args { channel: .., Default::default() }) Let me know what you think! |
Surreee let me give it a go! |
One question, regarding the |
This adds the ability to write integration tests, that do actual pixi commands to run the integration test. A
PixiController
and convenience methods have been added to test these things. Also the integration tests can become pretty expensive so you can use theslow_integration_tests
feature to only run these in CI by default. On the commandline one can usecargo t --all-features
to test it manually,.Before merge:
After merge: