Skip to content

Run blazor create/build/publish as part of template tests #34275

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 5 commits into from
Jul 12, 2021
Merged

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Jul 12, 2021

No description provided.

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jul 12, 2021
@HaoK HaoK requested review from davidfowl and a team July 12, 2021 17:27
@HaoK HaoK marked this pull request as ready for review July 12, 2021 17:27
@HaoK HaoK requested a review from Pilchie as a code owner July 12, 2021 17:27
@HaoK
Copy link
Member Author

HaoK commented Jul 12, 2021

Create/build/publish tests are added back to ProjectTemplates, these tests are currently not running on helix again due to the last runtime dependency update, so you can see the new tests running in the Wdinws_testTempates_Results:

image

}

var appSettings = ReadFile(serverProject.TemplateOutputDir, "appsettings.json");
var element = JsonSerializer.Deserialize<JsonElement>(appSettings);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any chance you could only use STJ? Most of the things this is doing should be achievable using a JsonDocument or using an actual type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just lifted this from the existing template tests, do you want me to file a cleanup issue to switching both of these?

@HaoK HaoK merged commit dcae2a6 into main Jul 12, 2021
@HaoK HaoK deleted the haok/tests branch July 12, 2021 23:53
@ghost ghost added this to the 6.0-preview7 milestone Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants