makandra dev

Geordi is now (partially) tested with Cucumber. Yay! geordi cucumber supports a new @solo tag. Scenarios tagged with @solo will be excluded from parallel runs, and run sequentially in...

...migrations on Capistrano 3) Now requires a .firefox-version file to set up a test firefox. By default now uses the system Firefox/a test Chrome/whatever and doesn't print warnings...

...do not have to call force_extension(...) in your version block. If you have tests for file processors (e.g. for ClamAV virus scans via process: :virus_scan) and you have...

benmabey.com

Bryan talked about the differences between imperative and declarative scenarios. In my opinion, both styles have benefits and should be...

popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis

# Usage: linearcommits FOO-123456 # Alternative usage: linearcommits https://linear.app/some-workspace/issue/FOO-123456 function linearcommits { if test "$1" then local LINEAR_ID=$(echo "$1" | grep "[^/]*$" -o) # Extract linear ID from URLs

You are not using javascript tests The file is served from a public folder (not via controller) Problem description If you deliver files from a public folder it might...

...spreewald step: Then I should get a response with content-type "..." Outline How to test file downloads with tests that need javascript. Public served Look at the link of the...

...your own risk. If you plan to use it in production, please add some tests - the code above was written as part of hackathon. The tts-1-hd model used...

Add the following to ~/.config/mimeapps.list: x-scheme-handler/rubymine=rubymine.desktop Step 3: Test your desktop entry Does gio mime x-scheme-handler/rubymine suggest Registered applications: rubymine.desktop?

makandra dev

This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby 1.8) or gem install debugger (Ruby 1.9) Start your server...

...in RubyMine. Debug without Rubymine if you need to do so. Debugging in your tests When you run RSpec or Cucumber, Ruby is already in debug mode. Tests will open...

The RSpec matcher tests if two HTML fragments are equivalent. Equivalency means: Whitespace is ignored Types of attribute quotes are irrelevant Attribute order is irrelevant Comments are ignored

relishapp.com

...run examples with these tags. rspec --tag slow rspec -t slow # Using the parallel_tests gem rake "parallel:spec[,,--tag slow]" Or you can run all examples except the ones...

rspec --tag ~slow # note the ~ rspec -t ~slow # Using the parallel_tests gem rake "parallel:spec[,,--tag ~slow]" You can also assign values to tags, and only...

github.com

...you need to manually put in the actual translation anyway, this is no drawback. Test that I18n keys are translated into every locale This spec will fail if a translaton...

peter.sh

An extensive list of command line options when booting Chrome. This is useful for building a Capybara driver with custom...

...should just set verify_ssl: false or similar. This is only okay-ish for testing something in development. Note that there are services like badssl.com to test against weird SSL...

...case, too. Still, a certificate store is clearer and more versatile. Protip: You can test certificate chains with services like whatsmychaincert.com. Bonus info: when using curl on the command line...

puts item.subject puts item.body end Sending an e-mail client.send_message(:subject => "Test subject", :body => "Test body", :to_recipients => ['some@person.tld']) Listing calendar events calendar = client.get_folder(:calendar) calendar.items.each...

p item.subject p item.required_attendees end Creating an appointment calendar.create_item(:subject => 'A test meeting', :start => Time.now) Creating a meeting and invite attendees Due to a bug in Viewpoint...

...Angular app employs uiRouter, although it is not used nor actually required for this test. Working test setup # Capitalized expressions are intended to be replaced with YOUR values describe 'SERVICE...

...httpBackend.verifyNoOutstandingExpectation() @$httpBackend.verifyNoOutstandingRequest() describe 'FUNCTION()', -> it 'does something', -> # Maybe some code here # Call function under test (triggers API request, which will be intercepted) @SERVICE.FUNCTION()

...do something before request is answered

...ROOT/log/production.log' # # * Use RAILS_ROOT as a placeholder for the remote Rails root directory. # * Append ` || test $? =1;` to grep calls in order to avoid exit code 1 (= "nothing found")

...that running the Ruby garbage collector only every X seconds can speed up your tests. I found that deferring garbage collection would speed up my RSpec examples by about...

...but it probably depends on the nature of your tests. I also tried applying it to Cucumber features, but found no performance improvements. Since Joe is using Test::Unit in...

...directory. Next, symlink all packs that are required in production: app/ ... webpack/ packs/ app/ test/ packs_production app -> ../packs/app Now tell Webpacker to use these for production (and staging): # config/webpacker.yml...

When you want to test how an web-application reacts in a specific resolution, you can set up a specific Selenium driver for some tests: Before('@chrome320x480') do Capybara.current_driver...

...your path. You can also set a special binary you only use for theese tests. You set up the driver in a file like this # features/support/chrome.rb Capybara.register_driver :chrome320x480 do...

...comes from try to run the tests with a step output. bundle exec parallel_cucumber --test-options "--format=pretty" feature The deprecation message looks like following: Locator Integer:2 for...

keycdn.com

...Locally or Prefetch Store in LocalStorage with Base64 Encoding Another Method Web Font Performance Tests Google Fonts Test Web Safe Font Test Local Fonts Test Third Party: Typekit Test

...paint or render of your text, so you can avoid FOIT. Remember to run tests for 3G connections as well because mobile users might have a worse experience as opposed...

...will not recompile. The digest of the last compilation is cached in tmp/cache/webpacker/last-compilation-digest-test (replace -test with your environment). You can remove that file to force a re-compile...

To create a 10 GB file: fallocate -l 10G huge_file.dat