Re: [BuildStream] How to catch regressions in buildstream's interactive interface
- From: Gökçen Nurlu <gokcennurlu gmail com>
- To: jonathan maw codethink co uk
- Cc: bochecha daitauha fr, buildstream-list gnome org
- Subject: Re: [BuildStream] How to catch regressions in buildstream's interactive interface
- Date: Sat, 20 Oct 2018 14:08:47 +0100
Hello all,
Maybe we can find a way to make use of `input=` kwarg of click's own
`invoke()` method [0].
`tests.testutils.runcli.Cli.run()` [1] can possibly be extended to
accept such parameter and pass that to click object [2], somehow.
[0] - https://click.palletsprojects.com/en/7.x/testing/#input-streams
[1] - https://gitlab.com/BuildStream/buildstream/blob/master/tests/testutils/runcli.py#L238
[2] - https://gitlab.com/BuildStream/buildstream/blob/master/tests/testutils/runcli.py#L313
Additionally, I think extending test utils to introduce this kind of
tests might deserve a separate issue to track it more visibly. Do have
one already?
Best regards,
Gokcen
Jonathan Maw via BuildStream-list <buildstream-list gnome org>, 17 Eki
2018 Çar, 16:47 tarihinde şunu yazdı:
On 2018-10-16 10:22, Mathieu Bridon wrote:
Can https://pexpect.readthedocs.io/en/stable/ help here?
Hi Mathieu,
This looks very interesting and should be able to do what I want.
Unfortunately, it looks like it would be difficult to integrate with the
existing runcli testutil, because that invokes buildstream directly,
rather than starting a subshell.
Thanks,
Jonathan
--
Jonathan Maw, Software Engineer, Codethink Ltd.
Codethink privacy policy: https://www.codethink.co.uk/privacy.html
_______________________________________________
BuildStream-list mailing list
BuildStream-list gnome org
https://mail.gnome.org/mailman/listinfo/buildstream-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]