Skip to content

Cedrusco/cedrus-training-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cedrus Training: TDD

Project used to facilitate learning the Test-Driven Development paradigm.

Layout

  • start: The stub for starting the project.
  • finish: The finished result.

Getting started

  1. Ensure you have Node.js installed on your system.
  2. Run npm install from the start folder.

Module 0: Setup + Red, Green, Refactor

  1. Set up scripts to watch for changes
  2. Write tests, fail
  3. Code for feature, pass
  4. Document, refactor code to make code better

Module 1: Breaking Features Into Units

Programmer cliches! Write a class that covers Hello World, foo/bar/baz/etc, and fizz buzz.

  1. Get 'Hello World'
  2. Get 'Hello' + name
  3. Get 'Hello' + name capitalized
  4. Throw error if name is not entered
  5. Get correct value for fizz buzz
  6. Get bar from foo, baz from bar, etc

Module 2: Async, Mocking, Stubbing, Spying

LolCat service. Translate from English to LolCat.

  1. Async call
  2. Stubs via spy
  3. Mocks via nock

Module 3: Test Coverage

  1. Code coverage
  2. Reporting

Helpful Links

Author(s)

  • Matt Johnson (src-system42)

Credits

Copyright

MIT (c) 2018 Cedrus, LLC

About

Cedrus project to facilitate learning TDD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published