Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Unit Test or Integration test? #4659


User avatar
0
manojreddy created

Test cases which are there in the downloaded project are unit tests or integration tests? And why?

I’m creating some records, test case is passed successfully, but I cannot see in the database? So if I want to run these test cases on real DB, how can I do this?

If running test cases are allowed on real db then how should I handle the cleanup code? Means if let’s say I’m running test case to insert a row for entity, but once I’m done with this test case, it should remove this records from DB. Same should happen for update and delete also.

I’m using asp.net core + angular project.


No answer yet!