Add unit tests for better coverage in Execution namespace#2042
Add unit tests for better coverage in Execution namespace#2042dennisdoomen merged 5 commits intofluentassertions:developfrom
Conversation
563259f to
faadcc6
Compare
Pull Request Test Coverage Report for Build 3924366754Details
💛 - Coveralls |
|
I'm wondering if we can test this through the public API instead of accessing internals. E.g. could we add a test project with an custom/unsupported test framework to exercise when |
Currently the analysis of test framework is not public. So it cannot be tested with public API.
I guess this is also currently not possible because the API for "custom test framework" is not possible. |
By public API I intended to mean through some part of the existing public API that can reach I can recommend reading Unit testing internals for some interesting thoughts on this subject. |
|
Within really existing testing frameworks (which are used in the FA solution) the |
That's exactly what we should be doing instead. |
|
What is you preferred unsupported framework? |
Good point. I think the best approach is to allow overriding the test framework provider through |
|
Mmh, |
7e19645 to
cfba009
Compare
|
I've removed the tests which requires (additional) |
Tests/FluentAssertions.Specs/Execution/TestFrameworkProviderTests.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Execution/TestFrameworkProviderTests.cs
Outdated
Show resolved
Hide resolved
Tests/FluentAssertions.Specs/Execution/FallbackTestFrameworkTests.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
🤔 I have to admit that I don't like this approach where we make private stuff internal. Instead, I prefer that we make the list of test frameworks configurable. In other words, we allow people to modify the Frameworks collection through AssertionOptions (in the AssertionOptionSpecs. Then you just empty the collection and observe the effect.
As I already wrote above, making used testing framework configurable is very difficult, because The current version of the PR does not change the public API. So, what is the problem with the proposed changes? |
The |
27a5d98 to
6cf834b
Compare
6cf834b to
f9a958a
Compare
|
The mentioned tests in the context of Hope the PR is acceptable now. |
Tests/FluentAssertions.Specs/Execution/TestFrameworkProviderTests.cs
Outdated
Show resolved
Hide resolved
|
Instead of making certain members
|
|
I made internal member of an internal class. Is this that bad? |
f9a958a to
995bdc7
Compare
I've created some new tests (and minor refactoring) for better coverage in the namespace
Executionaccording to #1823.