#332 Integration tests
Opened 5 years ago by bookwar. Modified 5 years ago

To prevent breakages like https://bugzilla.redhat.com/show_bug.cgi?id=1693751#c8 we need a set of tests for fedpkg which we can run as an integration test suite, to verify the end-to-end scenarios.

The critical requirement here is that, unlike unit tests which are run in development environment, locally, integration tests MUST use system libraries and system packages.

Are there any tests already which can be configured to run in this way?


I wrote one[1] for rpkg and fedpkg when I worked on these project.

rpkg-ci includes several scripts for making new release of rpkg and fedpkg, making packages locally for testing, and so on, it also contains a test suite to test commands that work for local package build and commands that work with Fedora package infrastructure, like Koji and MBS. Stg environment is used.

If you and current maintainer feel it is useful, feel free to fork it, modify it and use it to test rpkg or fedpkg. I originally thought to run the testing workflow (not unit tests) in a CI in this process:

PR is created --> Some job is triggered --> Package is built with the patch --> Install packages --> Run tests.

Just FYI. Hope this tool is useful for you guys.

[1] https://pagure.io/rpkg-ci

Log in to comment on this ticket.

Metadata