Continuous Security Testing with Devops - OWASP EU 2014

Posted Over 8 years ago by Henning Koch.
slideshare.net

Interesting talk about a team that integrated automated security testing into their BDD workflow. There is also a video of...

Jasmine: Testing complex types for equality

Posted Over 8 years ago by Henning Koch.

Jasmine comes with two matchers that test for equality. The first is toBe: expect(first).toBe(second) toBe passes when...

Testing regular expressions visually

Posted Almost 9 years ago by Thomas Klemm.

Developing complex regular expressions quickly blows my mind. Here are some online regex editors that help you by highlighting matching...

Manually trigger a delegated DOM event

Posted Almost 9 years ago by Henning Koch.

When you register a delegated event using on (or the deprecated delegate / live), it is somewhat hard to manually trigger...

Show details of TLS/SSL connections of remote hosts

Posted Almost 9 years ago by Thomas Eisenbarth.

sslscan is a nice tool to show details about TLS/SSL connections: ~> sslscan some-host-at.makandra.de Testing SSL server some-host-at.makandra.de on port 443...

Savon testing: How to expect any message

Posted Almost 9 years ago by Arne Hartherz.

When using Savon to connect a SOAP API, you may want to use Savon::SpecHelper to mock requests in your...

Testing setTimeout and setInterval with Jasmine

Posted Almost 9 years ago by Henning Koch.
jasmine.github.io

Jasmine has a jasmine.clock() helper that you can use to travel through time and trigger setTimeout and setInterval callbacks:

Jasmine: Testing AJAX calls that manipulate the DOM

Posted Over 9 years ago by Henning Koch.

Here is a Javascript function reloadUsers() that fetches a HTML snippet from the server using AJAX and replaces the current...

Jasmine: Reset the location when testing code that uses pushState / replaceState

Posted Over 9 years ago by Henning Koch.

When testing code that uses pushState / replaceState, your browser will appear to navigate away from http://localhost:3000/specs (or wherever...

velesin/jasmine-jquery

Posted Over 9 years ago by Henning Koch.
github.com

This jasmine plugin helps with testing DOM manipulation in two ways: It gives you DOM-related matchers like toBeVisible() or...

Testing focus/blur events with Cucumber

Posted Over 9 years ago by Dominik Schöler.

This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...

Install or update Chromedriver on Linux

Posted Over 9 years ago by Thomas Klemm.

Option 0: Download from the official page (preferred) Open https://googlechromelabs.github.io/chrome-for-testing/ In Section "Stable" > chromedriver / linux64 > Download ZIP from...

New Firefox and gem versions for our Selenium testing environment (Ubuntu 14.04+)

Posted Over 9 years ago by Dominik Schöler.

Firefox 5.0.1, which we were using for most Rails 2.3 projects, does not run on Ubuntu 14.04 any more. Here...

Perform Sidekiq jobs immediately in development

Posted Over 9 years ago by Thomas Klemm.

# config/initializers/sidekiq.rb # Perform Sidekiq jobs immediately in development, # so you don't have to run a separate process.

Testing drag&drop with Selenium

Posted Over 9 years ago by Arne Hartherz.

When using jQueryUI's Sortable plugin (either directly or via Angular's ui.sortable), you might struggle testing your nice drag...

RSpec 1.x matcher for delegations

Posted Almost 10 years ago by Dominik Schöler.
gist.github.com

The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...

How to test bundled applications using Aruba and Cucumber

Posted Almost 10 years ago by Dominik Schöler.

Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...

Things to consider when using Travis CI

Posted Almost 10 years ago by Dominik Schöler.

Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...

BrowserStack has browser plugins for local testing

Posted About 10 years ago by Thomas Eisenbarth.
browserstack.com

Local testing allows you to test your private and internal servers using the BrowserStack cloud, which has support for firewalls...

Collection of Rails development boosting frameworks

Posted About 10 years ago by Dominik Schöler.

Development environment setup Rails Composer : Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...

Spreewald 0.7.0 brings better email steps, improved test suite

Posted Over 10 years ago by Henning Koch.

You can now test for Reply-to Then an e-mail should have been sent with: """ From: foo@bar.com To: bar@baz.com...

Rails 3/4: How to add routes for specs only

Posted Over 10 years ago by Arne Hartherz.
stackoverflow.com

If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...

Custom RSpec matcher for allowed values (or assignable_values)

Posted Over 10 years ago by Dominik Schöler.

In contrast to RSpec's included allow_value matcher, the attached matcher will also work on associations, which makes it...

Capybara: Trigger requests with custom request method

Posted Over 10 years ago by Dominik Schöler.
rubydoc.info

Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...