[PR #322] [MERGED] Change test application initialization procedure. #1138

Open
opened 2026-01-29 16:57:43 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ElectronNET/Electron.NET/pull/322
Author: @kant2002
Created: 10/14/2019
Status: Merged
Merged: 11/27/2019
Merged by: @GregorBiswanger

Base: masterHead: improve-testability


📝 Commits (1)

  • cafffde Change test application initialization procedure.

📊 Changes

1 file changed (+3 additions, -4 deletions)

View changed files

📝 ElectronNET.WebApp/Program.cs (+3 -4)

📄 Description

It essentially the same as before, but MVC test tooling expect Program to have CreateWebHostBuilder. I referer to ability to seamlessly use WebApplicationFactory
I understand that story for testing Electron application will be not easy as it is, but this is allow better defaults for testing web applications which can be run in hybrid mode.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ElectronNET/Electron.NET/pull/322 **Author:** [@kant2002](https://github.com/kant2002) **Created:** 10/14/2019 **Status:** ✅ Merged **Merged:** 11/27/2019 **Merged by:** [@GregorBiswanger](https://github.com/GregorBiswanger) **Base:** `master` ← **Head:** `improve-testability` --- ### 📝 Commits (1) - [`cafffde`](https://github.com/ElectronNET/Electron.NET/commit/cafffde339fce3f4442102daebd8caed6e82339b) Change test application initialization procedure. ### 📊 Changes **1 file changed** (+3 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `ElectronNET.WebApp/Program.cs` (+3 -4) </details> ### 📄 Description It essentially the same as before, but MVC test tooling expect Program to have CreateWebHostBuilder. I referer to ability to seamlessly use WebApplicationFactory I understand that story for testing Electron application will be not easy as it is, but this is allow better defaults for testing web applications which can be run in hybrid mode. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:57:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#1138