This repo demonstrates how to start a new project using best Test Driven Development techniques plus a CI workflow with code coverage support. The technologies, services and libraries used in this repo is CoffeeScript, Grunt, Jasmine, Karma, IstanbulJS, Coveralls and Travis.
The blog post currently in Turkish but I am planning to post another one in English soon.
- clone the repository and cd to repo directory
- npm install
- npm install -g grunt-cli
- npm install -g grunt
- grunt
Bu repo Front End gelistirme surecleri icin test ve CI entegrasyonlarini en iyi yontemlerle (best practice) yapmayi gosteren suradaki blog post'a aittir. Kodu daha iyi anlayabilmek icin blog post'u okumanizi tavsiye ederim.
Bu projede kullanilan teknoloji, library ve servisler ise Grunt, Jasmine, Karma Test Runner, IstanbulJS, Coveralls.io ve Travis CI olacaktir.
Yapilacak islerin listesi ise su sekilde.
- Modul yonetimi icin
package.json
'imizi olusturacagiz. - Task'larimizi yonetmek icin
Gruntfile.coffee
'imizi olusturacagiz. - Uygulamamiza ait kodlari yazacagiz.
- JasmineJS ile uygulamamizin testlerini yazacagiz.
- Testlerimizi calistirmak icin Karma Test Runner'i entegre edecegiz.
- IstanbulJS kullanarak kod coverage raporumuzu elde edecegiz.
- Coveralls.io ile coverage durum ve gecmisimiz
- Travis ile CI entegrasyonu saglamis olacagiz.
- npm install
- npm install -g grunt-cli
- npm install -g grunt
- grunt