https://github.com/paparascal2020/simple-tdd-template-js
A simple skelenton TDD enviroment for JavaScript
https://github.com/paparascal2020/simple-tdd-template-js
Last synced: 12 months ago
JSON representation
A simple skelenton TDD enviroment for JavaScript
- Host: GitHub
- URL: https://github.com/paparascal2020/simple-tdd-template-js
- Owner: PapaRascal2020
- Created: 2022-06-25T13:55:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T14:40:56.000Z (almost 4 years ago)
- Last Synced: 2025-06-07T05:35:35.016Z (about 1 year ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A simple enviroment for Javascript TDD
A simple skeleton project to test Javascript.
Uses: Jasmine Spec Runner
## To use
* Download/Clone the repository
* Open root folder and open SpecRunner.html
I have included a simple math test just to show its working.
This is what I use for my Javascript TDD.
## Create your own tests.
Although naming is up to you I use {functionname}Spec.js and {functionname}.js
You create the Spec (test) file in the spec folder and the function file in the src folder.
To refrence place the JS in the SpecRunner.html in the same way as the sample scripts are included.
To see your tests just refresh SpecRunner.html.
## Jasmine Spec Runner
The code and documentation information can be found at https://jasmine.github.io/