-
Notifications
You must be signed in to change notification settings - Fork 805
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
Reenabling tests for the UI projects in CI #1807
Conversation
@dotnet-policy-service agree |
test/HealthChecks.UI.Tests/Functional/Configuration/UIHttpMessageHandlerTests.cs
Outdated
Show resolved
Hide resolved
@@ -60,11 +60,17 @@ jobs: | |||
6.0.x | |||
7.0.x | |||
- name: Restore UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's join all restore commands into one step with name Restore
.
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI/HealthChecks.UI.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
run: | | ||
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI/HealthChecks.UI.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && | ||
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
- name: Check formatting UI.Client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same suggestion for that step - use Check formatting
name.
@@ -102,13 +114,17 @@ jobs: | |||
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | |||
|
|||
- name: Build UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again - Build
.
# flags: UI | ||
# directory: .coverage | ||
|
||
- name: Test UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And again - one step with name Test
and &&
to chain calls to dotnet test
.
…ageHandlerTests.cs Co-authored-by: Ivan Maximov <[email protected]>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #1807 +/- ##
==========================================
+ Coverage 66.26% 66.96% +0.70%
==========================================
Files 145 212 +67
Lines 3910 7744 +3834
Branches 388 527 +139
==========================================
+ Hits 2591 5186 +2595
- Misses 1230 2422 +1192
- Partials 89 136 +47
Flags with carried forward coverage won't be shown. Click here to find out more. |
@rob-baldwin Thank you very much. |
What this PR does / why we need it:
CI tests were not running for the UI projects, this PR makes minimal changes to get the UI tests to run again.
Which issue(s) this PR fixes:
Mentioned as a pain point in: #1714
Special notes for your reviewer:
I've disabled one test, as I could not figure out why it was failing and guessed it was more important to have the majority of tests running than none.
Does this PR introduce a user-facing change?:
Please make sure you've completed the relevant tasks for this PR, out of the following list: