test readme and test sof

This commit is contained in:
Torsten Ruger 2015-03-25 18:31:18 +02:00
parent 0c08c335e5
commit e2e692e25d
3 changed files with 18 additions and 57 deletions

View File

@ -5,6 +5,4 @@ gem "salama-reader" , "0.0.2" , :require => "parser" , :git => "https://github.c
group :development do
gem "minitest"
gem "simplecov"
gem "jeweler"
end

View File

@ -7,71 +7,16 @@ GIT
GEM
remote: http://rubygems.org/
specs:
addressable (2.3.6)
blankslate (2.1.2.4)
builder (3.2.2)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
docile (1.1.5)
faraday (0.9.0)
multipart-post (>= 1.2, < 3)
git (1.2.6)
github_api (0.11.3)
addressable (~> 2.3)
descendants_tracker (~> 0.0.1)
faraday (~> 0.8, < 0.10)
hashie (>= 1.2)
multi_json (>= 1.7.5, < 2.0)
nokogiri (~> 1.6.0)
oauth2
hashie (2.1.1)
highline (1.6.21)
jeweler (2.0.1)
builder
bundler (>= 1.0)
git (>= 1.2.5)
github_api
highline (>= 1.6.15)
nokogiri (>= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (1.0.0)
mini_portile (0.6.0)
minitest (5.3.2)
multi_json (1.10.1)
multi_xml (0.5.5)
multipart-post (2.0.0)
nokogiri (1.6.2.1)
mini_portile (= 0.6.0)
nokogiri (1.6.2.1-x64-mingw32)
mini_portile (= 0.6.0)
oauth2 (0.9.4)
faraday (>= 0.8, < 0.10)
jwt (~> 1.0)
multi_json (~> 1.3)
multi_xml (~> 0.5)
rack (~> 1.2)
parslet (1.6.1)
blankslate (~> 2.0)
rack (1.5.2)
rake (10.3.2)
rdoc (4.1.1)
json (~> 1.4)
simplecov (0.8.2)
docile (~> 1.1.0)
multi_json
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
thread_safe (0.3.4)
PLATFORMS
ruby
x64-mingw32
DEPENDENCIES
jeweler
minitest
parslet
salama-reader (= 0.0.2)!
simplecov

18
test/README.md Normal file
View File

@ -0,0 +1,18 @@
# Testing
Testing is off course great, and well practised in the ruby community.
Good tests exists in the parts where functionality is clear: Parsing and binary generation.
But it is difficult to write tests when you don't know what the functionality is.
Also TDD does not really help as it assumes you know what you're doing.
As this is all quite new, i tend to test only when i know that the functionality will stay that way.
Otherwise it's just too much effort to rewrite and rewrite the tests.
I used minitest / test-unit as the framewok, just because it is lighter and thus when the
time comes to move to salama, less work.
## Commands
bundle exec rake test