Created
June 26, 2010 12:59
-
-
Save teamon/454036 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Heckle all" | |
task :heckle_all do | |
heckle "spec/models/address_spec.rb", "Address#to_s" | |
heckle "spec/models/category_spec.rb", "Category#permalink" | |
heckle "spec/models/facturer_spec.rb", "Facturer#permalink" | |
heckle "spec/models/product_spec.rb", "Product#permalink" | |
heckle "spec/integration/cart_spec.rb", "Cart#<<" | |
heckle "spec/integration/cart_spec.rb", "Cart#empty?" | |
heckle "spec/integration/cart_spec.rb", "Cart#clear!" | |
heckle "spec/integration/cart_spec.rb", "Cart#total_price" | |
heckle "spec/integration/cart_spec.rb", "Cart#quantity_of" | |
heckle "spec/integration/cart_spec.rb", "CartItem#total_price" | |
end | |
require "spec" | |
def heckle(file, method) | |
options = Spec::Runner::Options.new($stderr, $stdout) | |
options.load_heckle_runner(method) | |
options.files << file | |
Spec::Runner.use options | |
Spec::Runner.run | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/code/verkonwsys/mersh (master*) [1.8.6/mersh] % time bundle exec rake heckle_all | |
(in /Users/teamon/code/verkonwsys/mersh) | |
Merb root at: /Users/teamon/code/verkonwsys/mersh | |
Loading init file from ./config/init.rb | |
Loading ./config/environments/development.rb | |
~ Loaded TEST Environment... | |
********************************************************************** | |
*** Address#to_s loaded with 10 possible mutations | |
********************************************************************** | |
10 mutations remaining... | |
9 mutations remaining... | |
8 mutations remaining... | |
7 mutations remaining... | |
6 mutations remaining... | |
5 mutations remaining... | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Category#permalink loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Facturer#permalink loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Product#permalink loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Cart#<< loaded with 13 possible mutations | |
********************************************************************** | |
13 mutations remaining... | |
12 mutations remaining... | |
11 mutations remaining... | |
10 mutations remaining... | |
9 mutations remaining... | |
8 mutations remaining... | |
(h11_<<):2: warning: found = in conditional, should be == | |
7 mutations remaining... | |
(h13_<<):2: warning: found = in conditional, should be == | |
6 mutations remaining... | |
5 mutations remaining... | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Cart#empty? loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Cart#clear! loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Cart#total_price loaded with 7 possible mutations | |
********************************************************************** | |
7 mutations remaining... | |
6 mutations remaining... | |
5 mutations remaining... | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** Cart#quantity_of loaded with 10 possible mutations | |
********************************************************************** | |
10 mutations remaining... | |
9 mutations remaining... | |
8 mutations remaining... | |
7 mutations remaining... | |
6 mutations remaining... | |
5 mutations remaining... | |
(h11_quantity_of):2: warning: found = in conditional, should be == | |
4 mutations remaining... | |
(h13_quantity_of):2: warning: found = in conditional, should be == | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
********************************************************************** | |
*** CartItem#total_price loaded with 4 possible mutations | |
********************************************************************** | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
bundle exec rake heckle_all 33,21s user 7,59s system 65% cpu 1:02,30 total | |
~/code/verkonwsys/mersh (master*) [1.8.6/mersh] % |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Heckle all" | |
task :heckle_all do | |
sh "spec spec/models/address_spec.rb --heckle 'Address#to_s'" | |
sh "spec spec/models/category_spec.rb --heckle 'Category#permalink'" | |
sh "spec spec/models/facturer_spec.rb --heckle 'Facturer#permalink'" | |
sh "spec spec/models/product_spec.rb --heckle 'Product#permalink'" | |
sh "spec spec/integration/cart_spec.rb --heckle 'Cart#<<'" | |
sh "spec spec/integration/cart_spec.rb --heckle 'Cart#empty?'" | |
sh "spec spec/integration/cart_spec.rb --heckle 'Cart#clear!'" | |
sh "spec spec/integration/cart_spec.rb --heckle 'Cart#total_price'" | |
sh "spec spec/integration/cart_spec.rb --heckle 'Cart#quantity_of'" | |
sh "spec spec/integration/cart_spec.rb --heckle 'CartItem#total_price'" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/code/verkonwsys/mersh (master*) [1.8.6/mersh] % time bundle exec rake heckle_all | |
(in /Users/teamon/code/verkonwsys/mersh) | |
Merb root at: /Users/teamon/code/verkonwsys/mersh | |
Loading init file from ./config/init.rb | |
Loading ./config/environments/development.rb | |
spec spec/models/address_spec.rb --heckle 'Address#to_s' | |
********************************************************************** | |
*** Address#to_s loaded with 10 possible mutations | |
********************************************************************** | |
10 mutations remaining... | |
9 mutations remaining... | |
8 mutations remaining... | |
7 mutations remaining... | |
6 mutations remaining... | |
5 mutations remaining... | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/models/category_spec.rb --heckle 'Category#permalink' | |
********************************************************************** | |
*** Category#permalink loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/models/facturer_spec.rb --heckle 'Facturer#permalink' | |
********************************************************************** | |
*** Facturer#permalink loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/models/product_spec.rb --heckle 'Product#permalink' | |
********************************************************************** | |
*** Product#permalink loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/integration/cart_spec.rb --heckle 'Cart#<<' | |
********************************************************************** | |
*** Cart#<< loaded with 13 possible mutations | |
********************************************************************** | |
13 mutations remaining... | |
12 mutations remaining... | |
11 mutations remaining... | |
10 mutations remaining... | |
9 mutations remaining... | |
8 mutations remaining... | |
(h11_<<):2: warning: found = in conditional, should be == | |
7 mutations remaining... | |
(h13_<<):2: warning: found = in conditional, should be == | |
6 mutations remaining... | |
5 mutations remaining... | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/integration/cart_spec.rb --heckle 'Cart#empty?' | |
********************************************************************** | |
*** Cart#empty? loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/integration/cart_spec.rb --heckle 'Cart#clear!' | |
********************************************************************** | |
*** Cart#clear! loaded with 2 possible mutations | |
********************************************************************** | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/integration/cart_spec.rb --heckle 'Cart#total_price' | |
********************************************************************** | |
*** Cart#total_price loaded with 7 possible mutations | |
********************************************************************** | |
7 mutations remaining... | |
6 mutations remaining... | |
5 mutations remaining... | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/integration/cart_spec.rb --heckle 'Cart#quantity_of' | |
********************************************************************** | |
*** Cart#quantity_of loaded with 10 possible mutations | |
********************************************************************** | |
10 mutations remaining... | |
9 mutations remaining... | |
8 mutations remaining... | |
7 mutations remaining... | |
6 mutations remaining... | |
5 mutations remaining... | |
(h11_quantity_of):2: warning: found = in conditional, should be == | |
4 mutations remaining... | |
(h13_quantity_of):2: warning: found = in conditional, should be == | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
spec spec/integration/cart_spec.rb --heckle 'CartItem#total_price' | |
********************************************************************** | |
*** CartItem#total_price loaded with 4 possible mutations | |
********************************************************************** | |
4 mutations remaining... | |
3 mutations remaining... | |
2 mutations remaining... | |
1 mutations remaining... | |
No mutants survived. Cool! | |
bundle exec rake heckle_all 87,72s user 15,83s system 85% cpu 2:00,89 total | |
~/code/verkonwsys/mersh (master*) [1.8.6/mersh] % |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment