Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IntegrationTest project #100

Merged
merged 5 commits into from
Dec 17, 2023
Merged

Add IntegrationTest project #100

merged 5 commits into from
Dec 17, 2023

Conversation

alirezanet
Copy link
Owner

No description provided.

Copy link

what-the-diff bot commented Dec 17, 2023

PR Summary

  • Addition of Docker-specific files
    These added files are instrumental in our product's docker integration. They help in optimizing our product's usage with docker, and they include the .dockerignore file to specify what files should not be included in the docker build, as well as a Dockerfile, which is essentially a blueprint for building our Docker containers.

  • Setting Up Integration Tests
    A new project file HuskyIntegrationTests.csproj was added, which includes frameworks and packages needed to run integration tests. In addition, new test directories - TestProjectBase and Issue99 - were incorporated into this project file.

  • Improving Test Coverage
    The Tests.cs file was added, increasing the breadth of our integration tests, which ultimately leads to a more stable, bug-free product.

  • Enhanced Docker Functionality
    The DockerFixture.cs file includes methods to efficiently build and start docker containers. Meanwhile, the DockerLogger.cs significantly improves visibility into docker activities, proving vital in identifying and rectifying issues promptly.

  • Adding Extension Methods and Usings
    An Extensions.cs file was added to offer simplified, more readable code through the use of extension methods, specifically designed for Bash commands. In addition, a GlobalUsings.cs file was created to globally reference Xunit, thereby reducing the clutter brought about by unnecessary using statements in individual files.

The "Issue99" folder is not being used anymore in the HuskyIntegrationTests project. This commit removes the redundant folder reference from the project file to keep the project structure clean and accurate.
A new method `StartWithInstalledHusky` has been added to `DockerFixture`, this method provides an easier way to get a container with Husky installed. Some code rearrangement and wording modifications were made in the `Extensions` and `Tests` classes to make test cases clearer and more understandable. The newly created TestProjectBase solution was also added.
@alirezanet alirezanet marked this pull request as ready for review December 17, 2023 12:51
The BashAsync method in Extensions.cs now handles exceptions for non-zero exit codes, enhancing error handling. A new method, AddCsharpClass, has also been added to help create C# classes. In DockerFixture.cs, global user details are now set up to aid Git operations.
@alirezanet alirezanet merged commit ca61a32 into master Dec 17, 2023
1 check passed
@alirezanet alirezanet deleted the integrationTests branch December 17, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant