Skip to content

Update dependencies and migrate tests to TUnit#2479

Merged
MarcelMichau merged 2 commits intomainfrom
feat/tunit
Jan 29, 2025
Merged

Update dependencies and migrate tests to TUnit#2479
MarcelMichau merged 2 commits intomainfrom
feat/tunit

Conversation

@MarcelMichau
Copy link
Owner

Update dependencies and migrate tests to TUnit

  • Upgraded various packages in Directory.Packages.props including Azure.Identity, coverlet.collector, and multiple Microsoft.AspNetCore and Microsoft.EntityFrameworkCore packages from 9.0.0 to 9.0.1.
  • Updated Nerdbank.GitVersioning and several OpenTelemetry packages to their latest versions.
  • Added TUnit as a new testing framework, replacing Xunit in test files, and updated assertions accordingly.
  • Refactored tests in EndToEndTests.cs, SanityTests.cs, and others to utilize TUnit for improved test structure and maintainability.
  • Removed references to FluentAssertions and Microsoft.NET.Test.Sdk in favor of TUnit.
  • Updated packages.lock.json to reflect the new versions of dependencies and removed old xunit references.

Update dependencies and migrate tests to TUnit

- Upgraded various packages in `Directory.Packages.props` including `Azure.Identity`, `coverlet.collector`, and multiple `Microsoft.AspNetCore` and `Microsoft.EntityFrameworkCore` packages from `9.0.0` to `9.0.1`.
- Updated `Nerdbank.GitVersioning` and several OpenTelemetry packages to their latest versions.
- Added `TUnit` as a new testing framework, replacing `Xunit` in test files, and updated assertions accordingly.
- Refactored tests in `EndToEndTests.cs`, `SanityTests.cs`, and others to utilize `TUnit` for improved test structure and maintainability.
- Removed references to `FluentAssertions` and `Microsoft.NET.Test.Sdk` in favor of `TUnit`.
- Updated `packages.lock.json` to reflect the new versions of dependencies and removed old `xunit` references.
@MarcelMichau MarcelMichau changed the title chore(deps): bump dependencies Update dependencies and migrate tests to TUnit Jan 29, 2025
Updated `CacheTests.cs`, `IndexPageTests.cs`, and `SwaggerTests.cs` to use properties for `ClientFactory` and `Client` instead of private fields. Replaced FluentAssertions with `Assert.That` for assertions in `CacheTests.cs`. These changes enhance code readability, maintainability, and consistency across test files.
@MarcelMichau MarcelMichau merged commit 52e3ad7 into main Jan 29, 2025
7 checks passed
@MarcelMichau MarcelMichau deleted the feat/tunit branch January 29, 2025 07:26
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.

1 participant