Skip to content

Conversation

@hishamco
Copy link
Member

@hishamco hishamco commented Dec 31, 2022

This is one of the PRs that I'm working on testing part of Orchard Core, the plan is to provide an essential testing APIs infrastructure for creating unit tests easily for OC APIs and modules

For reference #11865 (comment)
Fixes #11865.

@hishamco hishamco mentioned this pull request Dec 31, 2022
# Conflicts:
#	src/OrchardCore/OrchardCore.Testing/Apis/Security/PermissionContextAuthorizationHandler.cs
#	src/OrchardCore/OrchardCore.Testing/Data/TablePrefixGenerator.cs
#	src/OrchardCore/OrchardCore.Testing/Extensions/HttpContentExtensions.cs
#	test/OrchardCore.Testing.Tests/Data/TablePrefixGeneratorTests.cs
#	test/OrchardCore.Testing.Tests/Security/PermissionHandlerTests.cs
#	test/OrchardCore.Tests/Apis/ContentManagement/ContentApiController/BlogPostApiControllerTests.cs
#	test/OrchardCore.Tests/Apis/ContentManagement/DeploymentPlans/BlogPostCreateDeploymentPlanTests.cs
#	test/OrchardCore.Tests/Apis/ContentManagement/DeploymentPlans/BlogPostUpdateDeploymentPlanTests.cs
#	test/OrchardCore.Tests/Apis/Context/BlogPostApiControllerContext.cs
#	test/OrchardCore.Tests/Apis/Context/Extensions/HttpRequestExtensions.cs
#	test/OrchardCore.Tests/Apis/Context/MvcTestFixture.cs
#	test/OrchardCore.Tests/Apis/Context/SiteContext.cs
#	test/OrchardCore.Tests/Apis/Context/SiteStartup.cs
#	test/OrchardCore.Tests/Apis/Context/TestRecipeHarvester.cs
#	test/OrchardCore.Tests/Apis/GraphQL/ValidationRules/RequiresPermissionValidationRuleTests.cs
#	test/OrchardCore.Tests/Apis/Lucene/LuceneQueryTests.cs
#	test/OrchardCore.Tests/DisplayManagement/Decriptors/DefaultShapeTableManagerTests.cs
#	test/OrchardCore.Tests/DisplayManagement/DefaultDisplayManagerTests.cs
#	test/OrchardCore.Tests/DisplayManagement/ShapeFactoryTests.cs
#	test/OrchardCore.Tests/DisplayManagement/ShapeHelperTests.cs
#	test/OrchardCore.Tests/DisplayManagement/ShapeSerializerTests.cs
#	test/OrchardCore.Tests/Email/EmailTests.cs
#	test/OrchardCore.Tests/Extensions/ExtensionManagerTests.cs
#	test/OrchardCore.Tests/Localization/PortableObjectStringLocalizerFactoryTests.cs
#	test/OrchardCore.Tests/Localization/PortableObjectStringLocalizerTests.cs
#	test/OrchardCore.Tests/Modules/OrchardCore.OpenId/OpenIdServerDeploymentSourceTests.cs
#	test/OrchardCore.Tests/Modules/OrchardCore.Roles/RolesPermissionsHandlerTests.cs
#	test/OrchardCore.Tests/OrchardCore.Users/UserValidatorTests.cs
#	test/OrchardCore.Tests/OrchardCore.Users/UsersMockHelper.cs
#	test/OrchardCore.Tests/ResourceManagement/ResourceDefinitionTests.cs
#	test/OrchardCore.Tests/ResourceManagement/ResourceManagerTests.cs
#	test/OrchardCore.Tests/Routing/AutorouteEntriesTests.cs
#	test/OrchardCore.Tests/Security/PermissionHandlerHelper.cs
#	test/OrchardCore.Tests/Shell/ShellContainerFactoryTests.cs
#	test/OrchardCore.Tests/Stubs/MemoryFileBuilder.cs
#	test/OrchardCore.Tests/Stubs/StubExtensionManager.cs
#	test/OrchardCore.Tests/Stubs/StubHostingEnvironment.cs
#	test/OrchardCore.Tests/Stubs/StubPoFileLocationProvider.cs
#	test/OrchardCore.Tests/Workflows/WorkflowManagerTests.cs
@MichaelPetrinolis
Copy link
Contributor

Hello @hishamco, is there anything else I can do to contribute to this PR?

@hishamco
Copy link
Member Author

Sorry @MichaelPetrinolis for late I will try to make this as a top of my ToDo list

@github-actions
Copy link
Contributor

It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up.

@github-actions github-actions bot added the stale label Aug 14, 2024
@MikeAlhayek
Copy link
Member

for instructions on how to resolve the merge conflicts due to #16572 please follow the step listed in this comment.

@github-actions github-actions bot removed the stale label Aug 15, 2024
@github-actions
Copy link
Contributor

It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up.

@github-actions github-actions bot added the stale label Oct 15, 2024
@github-actions
Copy link
Contributor

Closing this pull request because it has been stale for very long. If you think this is still relevant, feel free to reopen it.

@github-actions github-actions bot closed this Oct 30, 2024
@hishamco hishamco reopened this Oct 30, 2024
@github-actions github-actions bot removed the stale label Oct 30, 2024
@github-actions
Copy link
Contributor

It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up.

@github-actions github-actions bot added the stale label Dec 29, 2024
@github-actions
Copy link
Contributor

Closing this pull request because it has been stale for very long. If you think this is still relevant, feel free to reopen it.

@github-actions github-actions bot closed this Jan 13, 2025
@MichaelPetrinolis
Copy link
Contributor

Hello @hishamco, is this PR abandoned?

@hishamco
Copy link
Member Author

hishamco commented Jul 2, 2025

Seems it closed as stale PR, let's recheck again, coz it was almost ready except the docs

@hishamco hishamco reopened this Jul 7, 2025
@hishamco
Copy link
Member Author

hishamco commented Jul 7, 2025

@MichaelPetrinolis I know you & I wanna merge this from a while, if you have any feedback on this, let me know, otherwise I will fix the conflict

@github-actions github-actions bot removed the stale label Jul 8, 2025
@MichaelPetrinolis
Copy link
Contributor

Hi @hishamco , i was using this lib to test it, What I saw is that for proper initialization and to avoid deadlocks we need to create a Fixture for each context we test (an IAsyncLifetime implementation that initializes and disposes the sitecontext). Then, a test class should implement IClassFixture and get the context from there.

@MikeAlhayek
Copy link
Member

@hishamco are you able to complete this PR? Keeping these PR open for so long obviously causes lots of conflicts and wasted effort.

@github-actions
Copy link
Contributor

It seems that this pull request didn't really move for quite a while. Is this something you'd like to revisit any time soon or should we close? Please comment if you'd like to pick it up.

@github-actions github-actions bot added the stale label Oct 18, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2025

Closing this pull request because it has been stale for very long. If you think this is still relevant, feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OrchardCore Testing

6 participants