[PR #70] Add integration tests, using Docker #217

Closed
opened 2026-01-29 16:31:18 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/quamotion/dotnet-packaging/pull/70

State: closed
Merged: Yes


This PR adds integration tests for dotnet-package using Docker containers on Travis.

It builds on the work from @clemensv in #65.
The idea is that we use a couple of demo/reference projects, run dotnet rpm/dotnet deb for the most important Distro's, and then install the package inside a Docker container.

Currently, there are three projects under /demo:

  • An ASP.NET Core application
  • A self-contained CLI application
  • A framework-dependent CLI application

Docker test are implemented only for the self-contained CLI application, on a subset of distros (CentOS + Debian).

The tests:

  • Will build a Docker image based off a Dockefile, which installs the RPM/deb package and makes sure all files have been installed in the target container (by diffing the file list against a reference list)
  • Will run that Docker image, which will run the CLI/ASP.NET Core app, and thereby making sure the result is actually 'runnable'. For the CLI apps, at this moment, this means that 'Hello, World' should have been printed out.

I also looked at getting this up and running on AppVeyor, but that would require premium VMs, something which is not available under AppVeyor's open source plan.

**Original Pull Request:** https://github.com/quamotion/dotnet-packaging/pull/70 **State:** closed **Merged:** Yes --- This PR adds integration tests for dotnet-package using Docker containers on Travis. It builds on the work from @clemensv in #65. The idea is that we use a couple of demo/reference projects, run `dotnet rpm`/`dotnet deb` for the most important Distro's, and then install the package inside a Docker container. Currently, there are three projects under `/demo`: - An ASP.NET Core application - A self-contained CLI application - A framework-dependent CLI application Docker test are implemented only for the self-contained CLI application, on a subset of distros (CentOS + Debian). The tests: - Will build a Docker image based off a `Dockefile`, which installs the RPM/deb package and makes sure all files have been installed in the target container (by diffing the file list against a reference list) - Will run that Docker image, which will run the CLI/ASP.NET Core app, and thereby making sure the result is actually 'runnable'. For the CLI apps, at this moment, this means that 'Hello, World' should have been printed out. I also looked at getting this up and running on AppVeyor, but that would [require premium VMs](https://github.com/appveyor/ci/issues/1717#issuecomment-399608403), something which is not available under AppVeyor's open source plan.
claunia added the pull-request label 2026-01-29 16:31:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#217