Skip to main content

Posts

Showing posts with the label Gemini

Test Driven Development - An agentic way to develop software

 Test Driven Development is my favorite kind of Software Development Life Cycle.  TDD - Test Driven Development is a Software Development Life Cycle, that leads the development of a feature by writing the test first.  The loop goes as, Write failing unit test -> Write the actual implementation -> Run the test so it passes Test -> Develop -> Pass : Repeat Now this verifies the implemented functionality is doing what is supposed to do. Lets look at a simple example -I think for the last couple of articles we are only looking at theory without any actual code or working lets fix that. Say you are working on a feature where you need to give certain features only to Premium users, for that, first you will write unit test as fun `verify user have premimum membership`(){     //given     setupUserProfile(loggedInViaEmail = true )         //when     val result = sut . checkIsUserHaveActiveSubscription()   ...