A Smattering of Selenium #92
What’s that? Eight days in a row? That’s right…
Categories:
What’s that? Eight days in a row? That’s right…
- lolcommits seems almost funny enough to be a good idea
- A vision for Cucumber 2.0 is rather interesting
- Install Firefox on Amazon Linux X86_64 Compiling GTK+ is not something I have had to do. But then again, I haven’t tried.
- Nerrvana is yet another Selenium-As-A-Service provider. Looks like they are taking the ‘upload to our servers and run as a scheduled job’ approach rather than real-time.
- Ext JS 4.1 Performance is important stuff if you are using this toolkit. (I also like how they author is Nige “Animal” White — note that I did not add the animal part myself)
- Dunno if it is just who I follow of if the Ruby / PHP communities just don’t post this sort of thing, but How Callables Work is another geeky Python post
- Scaling CI at Etsy: Divide and Concur, Revisited is the lightsaber heuristic in action — only around Jenkins plugins this time.
- RSpec is not the reason your rails test suite is slow is a gist along the theme of ‘slow tests are slow but not for the reasons you think’
This file contains 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
[david: compare]$ # at this point we have a stock rails app with no minitest tests and one pending rspec example [david: compare]$ [david: compare]$ time rake test Run options: # Running tests: Finished tests in 0.030419s, 0.0000 tests/s, 0.0000 assertions/s. 0 tests, 0 assertions, 0 failures, 0 errors, 0 skips real 0m5.694s user 0m4.503s sys 0m0.811s [david: compare]$ time rake spec /Users/david/.rvm/rubies/ruby-1.9.3-p0/bin/ruby -S rspec ./spec/models/thing_spec.rb * Pending: Thing add some examples to (or delete) /Users/david/tmp/compare/spec/models/thing_spec.rb # No reason given # ./spec/models/thing_spec.rb:4 Finished in 0.00072 seconds 1 example, 0 failures, 1 pending real 0m4.918s user 0m3.839s sys 0m0.697s [david: compare]$ [david: compare]$ echo 'require "test_helper" > > class ThingTest < ActiveSupport::TestCase > test "empty" do > end > end > ' > test/unit/thing_test.rb [david: compare]$ [david: compare]$ echo 'require "spec_helper" > > describe Thing do > example "empty" do > end > end > ' > spec/models/thing_spec.rb [david: compare]$ [david: compare]$ time rake test Run options: # Running tests: . Finished tests in 0.078296s, 12.7720 tests/s, 0.0000 assertions/s. 1 tests, 0 assertions, 0 failures, 0 errors, 0 skips real 0m5.802s user 0m4.565s sys 0m0.847s [david: compare]$ time rake spec /Users/david/.rvm/rubies/ruby-1.9.3-p0/bin/ruby -S rspec ./spec/models/thing_spec.rb . Finished in 0.00475 seconds 1 example, 0 failures real 0m4.950s user 0m3.903s sys 0m0.725s [david: compare]$ [david: compare]$ echo 'require "test_helper" > > class ThingTest < ActiveSupport::TestCase > 1000.times.map do |n| > test "empty #{n}" do > end > end > end > ' > test/unit/thing_test.rb [david: compare]$ [david: compare]$ echo 'require "spec_helper" > > describe Thing do > 1000.times.map do |n| > example "empty #{n}" do > end > end > end > ' > spec/models/thing_spec.rb [david: compare]$ [david: compare]$ time rake test Run options: # Running tests: ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Finished tests in 0.753860s, 1326.5062 tests/s, 0.0000 assertions/s. 1000 tests, 0 assertions, 0 failures, 0 errors, 0 skips real 0m6.730s user 0m5.047s sys 0m0.887s [david: compare]$ time rake spec /Users/david/.rvm/rubies/ruby-1.9.3-p0/bin/ruby -S rspec ./spec/models/thing_spec.rb ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Finished in 0.99978 seconds 1000 examples, 0 failures real 0m6.023s user 0m4.615s sys 0m0.790s This file contains 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 charactersrails new compare cd compare rails g model thing name:string echo "gem 'rspec-rails', '2.9.0.rc2', :group => [:development, :test]" >> Gemfile bundle rails g rspec:install rails g model thing name:string --skip-migration rake db:migrate rake db:test:prepare # at this point we have a stock rails app with no minitest tests and one pending rspec example time rake test time rake spec echo 'require "test_helper" class ThingTest < ActiveSupport::TestCase test "empty" do end end ' > test/unit/thing_test.rb echo 'require "spec_helper" describe Thing do example "empty" do end end ' > spec/models/thing_spec.rb time rake test time rake spec echo 'require "test_helper" class ThingTest < ActiveSupport::TestCase 1000.times.map do |n| test "empty #{n}" do end end end ' > test/unit/thing_test.rb echo 'require "spec_helper" describe Thing do 1000.times.map do |n| example "empty #{n}" do end end end ' > spec/models/thing_spec.rb time rake test time rake spec - I really don’t like integrations that are all-or-nothing from a philisophical perspective, but if you are look at using Sauce OnDemand with Behat, Behat-Sauce is what you want.
- Top 10 Reasons No One Uses Your Testing Tool from this year’s PyCon is so accurate it is spooky.