Comments (17)
Upgrading to <PackageReference Include="bunit" Version="1.24.8-preview" />
fixes the problem for me.
from bunit.
Ah fair - I also run rc.2 locally. But that bit is anyway interesting. Why should it fail with a type that is provided by the framework and not us.
Guessing it is because rc1 and rc2 are not binary compatible.
from bunit.
@linkdotnet Thanks a lot. the latest preview version (1.24.9-preview) is working fine for me 👏.
from bunit.
I think the issue is coming from this line:
and the fact that the CascadingParameterAttribute
now has a base class named CascadingParameterAttributeBase
in .NET 8 RC 2
from bunit.
Hmm interesting. Wonder why our own tests haven't caught this. Can you provide an example of a test that causes this. Should be a pretty easy fix though, so we should be able to get a fix out soon.
from bunit.
Even with the new introduction of the new base class, that shouldn't much interfere with the usage.
As @egil mentioned, it would be really helpful to have a minimal reproducible example for us.
We have many tests in combination with cascading parameters and not of them experienced such an exception.
from bunit.
here is the sample repo: https://github.com/msynk/bUnitNet8RC2
It seems this exception throws only for the components with parameters.
from bunit.
Interesting - the same test passes when moved inside our test suite.
from bunit.
@linkdotnet really interesting.
I've run the tests in both stable and preview versions of bUnit (1.23.9, 1.24.3-preview) with the same results.
from bunit.
Sorry - I meant I moved the test inside the bUnit code and let it run there. No issue at all. Even if I check out 1.23.9
and let the test run.
from bunit.
Is it a mstest thing?
from bunit.
Thought so too and "migrated" the given example to xUnit with the same outcome - still failing tests with the given exception.
from bunit.
With 1.22
(where we don't explicitly support net8.0
) it works like a charm (which makes sense given the context).
from bunit.
Doing a new preview release now that will build against RC2. Perhaps that fixes the issue. Guessing the package on nuget.org is build against rc1 and that is causing the failure. We cannot replicate when adding the tests and running against bunit sources.
from bunit.
Ah fair - I also run rc.2 locally.
But that bit is anyway interesting. Why should it fail with a type that is provided by the framework and not us.
from bunit.
Okay - @msynk can you confirm that it also works on your side?
from bunit.
Nice!
from bunit.
Related Issues (20)
- `IRenderedComponent.InvokeAsync` should support return values HOT 8
- Enable test doubles for (3rd party) components generation HOT 20
- Problems running docs project locally HOT 6
- Docs: search exposes pages that are not in the TOC
- bunit.web has dependency on alpha version of AngleSharp.Css HOT 2
- No way to set value for property with `[SupplyParameterFromQuery]` but not `[Parameter]` HOT 6
- Support for keyed services HOT 5
- Cannot trigger RowSelected eventcallback on SFgrid HOT 3
- `WrapperElementsGenerator` cachable
- IJSUnmarshalledRuntime removed in .NET 9 HOT 2
- FakeNavigationManager registration changed from Singleton to Scoped HOT 7
- bUnit does not set parameters as a result of two-way binding or chained binding when values are updated. HOT 6
- `@formname` attribute always causes an error: System.InvalidOperationException : Invalid element frame type 'NamedEvent' HOT 2
- upgrading bUnit to 1.27.17 results in bunit.web.testcomponents load errors HOT 2
- WASM MSAL Configuration Not Correctly Supported HOT 1
- Async Task in Multiple Tests HOT 8
- Clicking an Anchor Tag does not update NavigationManager HOT 2
- Unable to resolve service for type 'Bunit.Rendering.ITestRenderer' HOT 4
- diff:ignoreChildren does not Ignore Children of a Button HOT 4
- Change in 1.27.12-preview breaks Moq/AutoMock with loose behavior HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bunit.