Skip to content

IISIntegration tests in VS don't detect changes #40387

Closed
@HaoK

Description

@HaoK

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Note: I don't think release is required, but I've primarily been debugging/running in release due to some ANCM tests only working in release

I'm using VS2022 17.1.0/against main branch (with IIS installed + Admin powershell)

  1. git clean -xdff/restore.cmd/activate.ps1
  2. cd src/Servers/IIS
  3. build.cmd -c Release
  4. startvs.cmd / switch to Release/x64 platform
  5. Wait for test explorer to load all the tests, then go to Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests.StartupTests.CheckInvalidHostingModelParameter
  6. Double click on test to open StartupTests.cs (C:\Github\aspnetcore\src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs)
  7. Comment out the [SkipNonHelix("https://github.com/dotnet/aspnetcore/issues/25107")] on line 41
  8. Run the test, notice that nothing builds as things are considered up to date and yet still is skipped.
  9. Add <DisableFastUpToDateCheck>True</DisableFastUpToDateCheck> to src\Servers\IIS\IIS\test\IIS.NewShim.FunctionalTests\IIS.NewShim.FunctionalTests.csproj
  10. Run the test and notice it rebuilds and the test is no longer skipped.

I'm guessing this is might be due to StartupTests is being a file included from shared tests
<Compile Include="..\Common.LongTests\**\*.cs" />
`

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions