Skip to content

chibeepatag/simple-pos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Test Driven Development

  1. Setting the expectations
  2. What is TDD?
  3. Why is TDD important?
  4. The Red Green Refactor Cycle
  5. How to implement TDD
  6. Invoice Tax Computation Scenarios
  7. Implementing TDD using Javascipt
  8. Exercise
  9. Implementing TDD using Rails

Training duration: 3 hours

https://www.codecademy.com/articles/tdd-red-green-refactor https://medium.com/javascript-scene/tdd-the-rite-way-53c9b46f45e3


Unit tests check blocks of code to ensure that they all run as expected.

  1. Setting the expectations Hello, what programming language are you using? What project are you currently using? How do you test your code?

    This lecture is about the concept of TDD and not how to use a specific library or TDD for a specific programming language.

  2. What is Test Driven Development an approach to software development where you write tests first, then use those tests to drive the design and development of your software application.

  3. Snapshot of TDD Why is TDD important? Where is it used? Continuous integration - routinely push/commit into the main branch of a repository, and testing the changes, as early and often as possible.

    Automated tests show a sample of running a test suite

How to compute tax of invoice line

  1. Compute discount
  2. Is the customer tax exempt? Is the product tax exempt?
  3. Compute Tax Single Tax Multiple Tax Store wide taxes Product specific taxes
  4. Compute line subtotal and subtotal without tax
  5. Update invoice
  6. Update totals view

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published