[Rpm-ecosystem] Testing suggestions for "dnf --quiet repolist" & dnf --quiet list"?
Radek Holy
rholy at redhat.com
Wed Jul 15 06:11:56 UTC 2015
----- Original Message -----
> From: "Nick Coghlan" <ncoghlan at gmail.com>
> To: rpm-ecosystem at lists.rpm.org
> Sent: Wednesday, July 15, 2015 3:55:20 AM
> Subject: Re: [Rpm-ecosystem] Testing suggestions for "dnf --quiet repolist" & dnf --quiet list"?
>
> On 14 July 2015 at 19:38, Radek Holy <rholy at redhat.com> wrote:
> > From: "Nick Coghlan" <ncoghlan at gmail.com>
> >> Specifically, I'm thinking that behave scenarios could be a good way
> >> of testing some end-to-end user facing CLI behaviour for "given this
> >> command line, we expect this command output":
> >> http://pythonhosted.org/behave/tutorial.html#scenario-outlines
> >>
> >> We wouldn't want to go overboard with these, but I think they'd be a
> >> good way to check the basic interconnections between components are in
> >> place.
> >
> > I started to write some Behave tests (I'd call them "system tests" rather
> > than "integration tests" but it doesn't matter I think) already because I
> > wanted to make sure that my documentation of the "--installroot" switch
> > matches the reality. Take a look at it
> > https://github.com/rholy/dnf-extra-tests . Maybe you find it worth
> > extending. If you do, I'm ready to move them under
> > https://github.com/rpm-software-management/ if the rest of the team
> > agrees.
>
> +1, that sounds like a good idea to me. I actually also like the idea
> of keeping these kinds of system/acceptance tests separate from the
> main dnf repo, as that helps ensure consistency across releases and
> makes it easier for QE folks to contribute specifically to the
> acceptance tests.
>
> Given behave's naming scheme, perhaps we could use "dnf-feature-tests"
> as the repo name under rpm-software-management?
>
> In the meantime, I'll use your repo to make my test cases for the "dnf
> --quiet repolist" bug.
>
> Cheers,
> Nick.
>
> --
> Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
Cool, feel free to change anything there. I'm quite new to Behave so I may use something wrong or I may miss some best practices. I had e.g. hard time to decide how to write the scenarios. These days, if I test command line interfaces, I write it like this: https://github.com/rholy/dnf-stack-ci/blob/master/features/add_repository.feature#L20
--
Radek Holý
Associate Software Engineer
Software Management Team
Red Hat Czech
More information about the Rpm-ecosystem
mailing list