fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.19k stars 1.56k forks source link

Create Unit Test Projects #57

Closed iammukeshm closed 1 year ago

iammukeshm commented 2 years ago

Descoping to Release 2.0

egbakou commented 2 years ago

Hello @iammukeshm. Has anyone started working on this? I want to start working on the unit tests and integration test.

iammukeshm commented 2 years ago

@egbakou can you take up this task maybe? Would be great if I can get some help for this. Do let me know

egbakou commented 2 years ago

I will start working on it tomorrow :)

carllaw6885 commented 2 years ago

how are we getting on with the unit testing? I'd be happy to help too if needed?

egbakou commented 2 years ago

Hi @carllaw6885 can you check my forked repo ? I started working on the integration tests. You can do the unit tests if you want.

carllaw6885 commented 2 years ago

I can see you Hosts integration project.

Is that the solution structure you want me to maintain?

test/Host.UnitTests test/Domain.UnitTest and so on...

Or do you want test/UnitTests/Host.UnitTests

Not sure there is any real advantage to changing from what you've got but wanted to check.

egbakou commented 2 years ago

You can start working on the unit test for the Application project tests/Application.UnitTests

iammukeshm commented 2 years ago

Hi Guys, any update on this? @egbakou @carllaw6885

egbakou commented 2 years ago

Hi @iammukeshm, I am working on it. You will see a PR from me this week :)

iammukeshm commented 2 years ago

https://github.com/fullstackhero/dotnet-webapi-boilerplate/tree/main/tests/Infrastructure.Test

Just FYI.

xlogex commented 2 years ago

https://github.com/Dotnet-Boxed/Templates/tree/main/Tests/Boxed.Templates.FunctionalTest

frankyjquintero commented 2 years ago

@egbakou @carllaw6885 @iammukeshm xD Don't forget this topic.

gkhedekar5758 commented 2 years ago

Hello @egbakou @carllaw6885 I am new to github and open source world I would like to help in this issue so that i can put my steps in the open source world. Let me know if we can discuss the remainig work, i see you have started in 2021

gokmensercan commented 1 year ago

is there any progress on this?

maxiar commented 1 year ago

Hi @iammukeshm, I am working on it. You will see a PR from me this week :)

Hi! @egbakou, I'm interesting to do integration test for this template...I see your fork (test/integration-tests) and compiled successfully but when executed a ProductControllerTest, the GetProducts Api answer "unauthorized response", like the SetFakeBearerToken is not working...

I known that is a history code, but may be you can help me to continue with your working or give a tip to solve this issue.

image image

Thanks in advanced!

If anyone in this thread can complete any integration tests, please let me know.

pm1-essentialdesigns commented 7 months ago

Hi @maxiar @iammukeshm

If you were able to wrote a unit test, can you please provide a link here or code ? Thanks in advance.