Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed tests to produce better output for docs.

  • Loading branch information...
commit 644374adcd372a0ce79af78ea41fc3f995a9fb60 1 parent cd7c08d
@assaf assaf authored
Showing with 15 additions and 4 deletions.
  1. +11 −4 Rakefile
  2. +4 −0 test/experiments/price_options.rb
View
15 Rakefile
@@ -74,10 +74,17 @@ task :report do
188.times { |i| experiment(:null_abc).send(:count_participant, i, :blue) }
61.times { |i| experiment(:null_abc).send(:count_conversion, i, :blue) }
- 80.times { |i| experiment(:age_and_zipcode).send(:count_participant, i, false) }
- 35.times { |i| experiment(:age_and_zipcode).send(:count_conversion, i, false) }
- 84.times { |i| experiment(:age_and_zipcode).send(:count_participant, i, true) }
- 32.times { |i| experiment(:age_and_zipcode).send(:count_conversion, i, true) }
+ 98.times { |i| experiment(:age_and_zipcode).send(:count_participant, i, false) }
+ 79.times { |i| experiment(:age_and_zipcode).send(:count_conversion, i, false) }
+ 95.times { |i| experiment(:age_and_zipcode).send(:count_participant, i, true) }
+ 69.times { |i| experiment(:age_and_zipcode).send(:count_conversion, i, true) }
+
+ 85.times { |i| experiment(:price_options).send(:count_participant, i, 19) }
+ 8.times { |i| experiment(:price_options).send(:count_conversion, i, 19) }
+ 82.times { |i| experiment(:price_options).send(:count_participant, i, 25) }
+ 5.times { |i| experiment(:price_options).send(:count_conversion, i, 25) }
+ 87.times { |i| experiment(:price_options).send(:count_participant, i, 29) }
+ 2.times { |i| experiment(:price_options).send(:count_conversion, i, 29) }
Vanity::Commands.report ENV["OUTPUT"]
end
View
4 test/experiments/price_options.rb
@@ -0,0 +1,4 @@
+ab_test "Price options" do
+ description "Mirror, mirror on the wall, who's the better price of them all?"
+ alternatives 19, 25, 29
+end
Please sign in to comment.
Something went wrong with that request. Please try again.