Coder Social home page Coder Social logo

toniarnold / aspnettest Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 28.34 MB

Don't Develop GUI Tests, Teach Your App To Test Itself!

License: GNU Affero General Public License v3.0

C# 87.70% Makefile 0.69% Batchfile 0.06% HTML 6.53% TSQL 0.27% F# 1.80% ASP.NET 1.24% CSS 1.44% JavaScript 0.02% Gherkin 0.26%
acceptance-test-driven-development asp asp-net asp-net-core-mvc asp-net-web-forms gui-testing nunit state-machine test-engine

aspnettest's People

Contributors

dependabot[bot] avatar toniarnold avatar

Stargazers

 avatar  avatar  avatar

aspnettest's Issues

SHDocVw.InternetExplorer DocumentComplete blocked since Win10 update 1809

In theory, SHDocVw.InternetExplorer once required the Single-Threaded Aparment (STA), but this was no longer the case in the given context on Win10. Probably since Win10 update 1809 (retarded April 2019 version), even enforcing Apartment(ApartmentState.STA) (missing in .NET core) on the TestFixture causes the DocumentComplete event to time out after the second request – surprisingly, there is no difference whether the TestFixture nominally runs in the STA or the MTA.

Only workaround known today (tedious): A Visual Studio breakpoint at the end of IEExtensionBase.SetUpIE(), thus after each IE startup, precariously restores the old behavior and usually causes the tests to pass.

minimal.nuget.core.sln build fails with "Assembly paths must be rooted." due to COM reference

Steps to reproduce:

  1. Create a new clone for a NuGet-only binary build according to the NuGet-only guide.

  2. Open minimal.nuget.core.sln, restore NuGet packages and build the solution. This error message is only generated on the first build or when rebuilding (which takes some time due to the COM reference):

The assembly path obj\Debug\netcoreapp2.1\Interop.SHDocVw.dll is invalid. Assembly paths must be rooted.
minimal.nuget.core
C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.razor.design\2.1.2\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.CodeGeneration.targets
69
  1. Build once again. The error message disappears and the solution compiles. Unlike in minimal.nuget.webforms.sln, the Interop.MSHTML.dll and Interop.SHDocVw.dll are copied automatically to the ./bin directory.

  2. Run the web application with .\minimal.core\run.bat. It only seems to be working, as .cshtml Razor pages are not interpreted, only served literally, like static pages.

There is no problem when referencing the COM DLL indirectly as in the minimal.core.sln source solution.

.NET Core DbContext defunct in unit tests

Since a forced upgrade to .NET 5 (for Blazor .NET 6), DbContext Core requires DI Logging, thus unit tests requiring DbContext fail in the VS Test Explorer.

As soon as asplib.blazor gets referenced in test.core, we get a MissingMethodException at LoggerFactory.Create(). If the reference is only removed, the DbTest tests using DBContext pass. Problem is the reference to Microsoft.AspNetCore.Components.Web.

asp.websharper.spa.fs crashes wsfsc.exe

Steps to reproduce:

  • Open asp.websharper.sln
  • Rebuild the asp.websharper.spa.fs
  • wsfsc.exe (the F# compiler) crashes with:

Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
Fehler MSB6006 "wsfsc.exe" wurde mit dem Code 1 beendet. asp.websharper.spa.fs c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\commonextensions\microsoft\fsharp\Tools\Microsoft.FSharp.Targets 281

This happens both on VS2019 and VS2022. FSHarp.Core is the current 5.0.2, WebSarper the current 5.0.0.120

Race condition vulnerabily in database persistence

In resease v0.2.0, when two concurrent page requests have an overlapping time span from the initial HTTP request to the following SignalR request, one can accidentally get the other's database-persisted object instance.

Fixed in the b0.2.1 branch with the ScopeCorrelation service.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.