Skip to content

Add integration testing module using Aspire.Hosting.Testing and MSTest #74

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

jongalloway
Copy link
Contributor

@jongalloway jongalloway commented Feb 26, 2025

Fixes #72

Add integration testing module using Aspire.Hosting.Testing with MSTest.

  • Integration Test Project:

    • Create IntegrationTests project with references to Aspire.Hosting.Testing and MSTest.
    • Add project references to Api and MyWeatherHub.
  • Integration Tests:

    • Create IntegrationTests.cs with test methods for API and web application.
    • Use AspireTestHost and HttpClient for testing.
  • Documentation:

    • Add 9-integration-testing.md module explaining integration testing and Playwright for end-to-end testing.
  • README Update:

    • Add link to the new integration testing module.
  • CI/CD:

    • Update .github/workflows/build.yml to run integration tests using dotnet test.

For more details, open the Copilot Workspace session.

Fixes #72

Add integration testing module using `Aspire.Hosting.Testing` with `MSTest`.

* **Integration Test Project**:
  - Create `IntegrationTests` project with references to `Aspire.Hosting.Testing` and `MSTest`.
  - Add project references to `Api` and `MyWeatherHub`.

* **Integration Tests**:
  - Create `IntegrationTests.cs` with test methods for API and web application.
  - Use `AspireTestHost` and `HttpClient` for testing.

* **Documentation**:
  - Add `9-integration-testing.md` module explaining integration testing and Playwright for end-to-end testing.

* **README Update**:
  - Add link to the new integration testing module.

* **CI/CD**:
  - Update `.github/workflows/build.yml` to run integration tests using `dotnet test`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/dotnet-presentations/dotnet-aspire-workshop/issues/72?shareId=XXXX-XXXX-XXXX-XXXX).
@jongalloway jongalloway merged commit 2f62f1c into main Feb 26, 2025
3 checks passed
@jongalloway jongalloway deleted the jongalloway/add-integration-testing-1 branch February 26, 2025 08:03
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.

Integration Testing module
1 participant