From e2e692e25dc3929be1b6a141d72745dfe9b39d0c Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 25 Mar 2015 18:31:18 +0200 Subject: [PATCH] test readme and test sof --- Gemfile | 2 -- Gemfile.lock | 55 -------------------------------------------------- test/README.md | 18 +++++++++++++++++ 3 files changed, 18 insertions(+), 57 deletions(-) create mode 100644 test/README.md diff --git a/Gemfile b/Gemfile index fa76cb70..255fa318 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/Gemfile.lock b/Gemfile.lock index d8c8681b..9e67bd98 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/test/README.md b/test/README.md new file mode 100644 index 00000000..e1155068 --- /dev/null +++ b/test/README.md @@ -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 +