Sprint 1 Test Driven Development - root-mrrobot/wits-academy GitHub Wiki

Test Driven Development (TDD) is software development approach in which test cases are developed to specify and validate what the code will do.

For out Test Driven Deign we first analysed multiple user acceptance criteria.

User Acceptance Criteria:

  • Given that a new user goes to the register page and enters their name, a unique email address, a password meeting set out criteria and confirms said password correctly and clicks on the register button, then the user should be successfully registered and able to log in with their chosen credentials.
  • Given that a registered user is on the register page, the user should be able to navigate to the login page by clicking the “Login” hyperlink, so that they may use the app.
  • Given that a registered user is logged out, they should be able to go to the log in page and enter their email and password and click the “Log in” button, then the data associated to the user should be accessible and the user should be taken to the home page.
  • Given that a user is not yet registered, and they are on the login page, the user should be able to navigate to the register page by clicking the “register” hyperlink, so that they may use the app.
  • Given that a registered user has logged into the app the user should be brought to and able to access the home page so that they may make full use of the functionalities that the app offers.
  • Given that a registered user has logged into the app the user should be brought to and able to access the home page where they can access their personal account page so that they can view their personal information.

These user acceptance criteria are then used as a basis for testing and have this been implemented in our test classes. Furthermore CodeCoverage is then used within GitHub to track overall testing and a badge is accuired.