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

Already on GitHub? Sign in to your account

Make analyzer test use bootstrap properly #9733

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

JanKrivanek
Copy link
Member

Fixes #9729

Context

MSBuild bootstrap location should be properly injected into tests - paasing the info from msbuild properties
Extracted the Analyzers unit tests into separate assembly and made it dependent on bootstrap project

@JanKrivanek JanKrivanek requested a review from a team as a code owner February 13, 2024 11:30
@JanKrivanek JanKrivanek merged commit 6778443 into exp/build-analyzers Feb 13, 2024
1 of 2 checks passed
@JanKrivanek JanKrivanek deleted the proto/analyzers-bootsrap-test branch February 13, 2024 11:31
JanKrivanek added a commit that referenced this pull request Apr 15, 2024
* Initial demonstration version

* Make analyzer test use bootstrap properly (#9733)

* Hook analyzers stats stub

* Fix unit tests by explicitly opting into analysis

* Disable build acceleration for MSBuild.Bootstrap

* Make EndToEndTests disposable

* Support running Analyzers.UnitTests from stage1

* Fix MSBuild.dll casing

* Don't run netfx Analyzer.UnitTests in Windows Core builds

* Fix Analyzers.UnitTests on Mac

* Renaming changes

* Renaming for clarity (#9754)

* Removing unnecessary types

* Code move

* Adjust namespaces

* Simplify TestEnvironments in EndToEndTests

* Support for per-project configuration, Acquisition mounting, etc

* Add more comments

* Grace handle double initialization attempts

* Fix tests

* Troubleshoot test, comment

* Reflect PR comments

* Fix build

* Fix build - proper multitargeting on core builds

* Adjust API naming and exposure

* Add forgotten acquisition data sending

* Renaming BuildCop to BuildCheck (#9893)

We decided to rename the analyzer project from BuildCop to BuildCheck. This PR is just reflecting that on the code.

* Renamed a few files missed (#9900)

* Add template for custom analyzers (#9789)

* Run tests against just-built bootstrap environment

* Reflecting PR comments

* Add test without analysis

* Rename tests project

* Force case renaming

* Simplify GlobalInstance initialization

* Remove multiple registrations checking

* Reflect on PR feedback

* Apply suggestions from code review

Co-authored-by: Mariana Dematte <magarces@microsoft.com>

* Reflect on PR comments

* Update src/Build/BuildCheck/API/BuildAnalyzerRule.cs

Co-authored-by: Farhad Alizada <104755925+f-alizada@users.noreply.github.com>

* Reflect PR comments

---------

Co-authored-by: Ladi Prosek <laprosek@microsoft.com>
Co-authored-by: Mariana Dematte <magarces@microsoft.com>
Co-authored-by: YuliiaKovalova <95473390+YuliiaKovalova@users.noreply.github.com>
Co-authored-by: Farhad Alizada <104755925+f-alizada@users.noreply.github.com>
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