Skip to content

Instantly share code, notes, and snippets.

@moklett
Created August 14, 2013 13:26

Revisions

  1. moklett created this gist Aug 14, 2013.
    20 changes: 20 additions & 0 deletions proposal.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    Goals
    -----

    * For any given page/route, view a listing of the acceptance tests that exercise the page
    * Given a routes file, view a listing of routes which are unexercised by acceptance tests

    Features
    --------

    * Runs as a rake task (can be run as a part of CI or a local test run)
    * Stores its data along with source code
    * Provides an in-browser graphical overlay/popup, available in development mode, that shows the acceptance tests that exercise any given page you browse

    Possible Implementation
    -----------------------

    * Install before/after hooks for each individual acceptance test that set the current test context (test file, line, name)
    * Install a global `before_action` hook that inserts routing information for the current action in to that context
    * Store the results as a flat file database in source control
    * Can be run independently as a rake task, or as a part of default rake tasks