Skip to content

Learning TDD with JavaScript. Step by step code and training. Hands on exercises using factorial.

License

Notifications You must be signed in to change notification settings

kemapak/factorial-tdd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Factorial TDD

Test Driven Development Tutorial with Factorial Example.

Code examples and walkthrough of how to write unit test using TDD approach.

After to set up the examples please read Factorial TDD and follow the step by step examples.

The project is written in JavaScript using JEST Unit Testing Framework.

Installation

Node JS and NPM is required to run the examples. Clone or download the source code in your computer. Run NPM install inside the project folder.

npm install

Examples

Please read Factorial TDD Follow the step by step examples.

All the reference tests and Implementations are located under reference-test and reference-src folders.

Tests are located under test folder. Implementations are located under src folder. Which you will write.

Running The Tests

JEST unit testing framework is used in the project but can be replaced with any library you want.

You can run the tests in your IDE or in the command line.

To run all the test with NPM.

npm test

or to run a single test suite with JEST

jest /test/factorial.test.js

Release History

  • 1.0.0
    • Article.
    • Code Examples
  • 1.0.1
    • Updates to structure and article.
    • Minor fix in the package name.

License

Distributed under the MIT license. See LICENSE for more information.

Software Notes

I am hoping the code and article I shared is helpful. You can always reach me for any questions, comments.

Kem Apak : http://www.softwarenotes.net : @softwarenotes : https://github.com/kemapak

About

Learning TDD with JavaScript. Step by step code and training. Hands on exercises using factorial.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published