<% @stylesheets.each do |css| -%> <%= stylesheet_link_tag css %> <% end -%> <%= javascript_include_tag @tests.first %>

Override this test runner with your own at app/views/sandbox_assets/test_runner/iframe.html.erb. The test to include is available at @tests.first:

And those stylesheets will be also included:

Here is the source for this file (<%= __FILE__ %>):

<%= IO.read __FILE__ %>