Online tool to test how a site behaves in popular desktop, tablet and phone resolutions...
...for Ruby 1.9 with a powerful configuration library and automatic merging of coverage across test suites. Note that rcov won't ever have support for Ruby 1.9, you're supposed...
...above when running cucumber, just execute... rm rerun.txt ...in the Rails directory. Or run... tests ...from the geordi gem. This will do the work for you automatically...
Wrapping a string in this class gives you a prettier way to test for equality...
Adds a slide out panel to your Rails application that directs clients to test stories that have been marked as 'delivered' in Pivotal Tracker...
power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered. The script will not run rake on a production or...
A fake filesystem. Use it in your tests...
...a shell command task "railscheck" that you can run against your Rails projects to test for a number of typical bugs, potential problems and inconsistencies...
...while you code. As soon as you push your commits, it builds, runs your tests, and makes sure everything works fine...
Or, you can test your Rack application (or Sinatra, or Rails, or Merb) using arbitrary HTTP client libraries, to check interoperability...
Write declarative tests using nested contexts without performance penalties. Contest is less than 100 lines of code and gets the job done...
Riot differs primarily in that it does not rerun setup for each test in a context...
Unlock achievements for running your test suite...
ShamRack mounts a Rack app locally, just for your tests. It goes one further: it “mounts” it using Net::HTTP such that requests to the Rack app never hit any...
The Holy Grail of testing for front-end development; execute browser-less, console-based, javascript + DOM code right from within your Rails test suite...
Don't insert table rows in a Rails database migration. This will break tests that expect that database to be empty and cause you all sorts of pain.
...one-sync once. It should ask you for some encfs settings; just press ENTER. Test it by putting some file into ~/sync. An encrypted version of your file should show...
...rv:|Edge\/)(\d+)/.exec(uaString); if (match) return parseInt(match[2]) } Here are the tests: describe('ieVersion()', () => { it('returns 10 for Internet Explorer 10', () => { version = up.browser.ieVersion('Mozilla/5.0 (compatible; MSIE...
...your ChromeDriver to version 75 or beyond, you might get w3c errors in your tests. For example, reading the browser console for errors no longer works, and page.driver.browser.manage.logs.get(:browser) will...
...the best practice to hide background tasks behind a single static methods you can test, this is probably preferable to defining additional Rake tasks. Unfortunately when whenever register a runner...
...to a given address. This is useful for staging environments where you want to test production-like mail delivery without sending e-mails to real users...
...to :log or :raise to enable. The default value is :log in development and test environments, and false in all other environments. Rails 3: If you include the strong_params...
A more visual alternative is to embed a string of HTML into your test. My specs often have a function htmlFixtures() that parses the HTML and returns a reference...
...item2] = htmlFixtures(` item 1 item 2 `) Because the effective HTML is visible in your test, reader will imediately recognize elements and how they relate to each other. Referencing created elements...
Best results in other decks
Add in Gemfile: group :development, :test do gem 'rspec-rails' gem 'spork-rails' end group :test do gem 'capybara' gem 'database_cleaner' gem 'email_spec' gem 'poltergeist' gem 'launchy'
# require 'spork/ext/ruby-debug' Spork.prefork do # Loading more in this block will cause your tests to run faster. However, # if you change any configuration or code from libraries loaded here...
The API funcational testing can be implemented using following steps First Step : Develop your API Second Step : Write the API Test class Eg: <?php /** * OrganisationRepositoryTest * * @copyright Copyright © 2023 Vasan. All...
...rights reserved. * @author psureshvasan@yahoo.com */ namespace Vasan\Organisation\Test\Api; use Magento\TestFramework\TestCase\WebapiAbstract; use Vasan\Organisation\Model\ResourceModel\OrganisationRepository; use Magento\Customer\Model\ResourceModel\CustomerRepository; use Magento\TestFramework\Helper...