Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Ashcroft
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<p>Here is an experiment for you. <img class="emoticon emoticon-smile" data-emoticon-name="smile" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/smile.png" alt="(smile)" title="(smile)" /></p> <ol> <li>Measure the time it takes to run your tests <strong>without</strong> Ashcroft. Call the time <strong>TP</strong> (seconds).</li> <li>Measure the time it takes to run your tests <strong>with</strong> Ashcroft. Call the time <strong>TA</strong> (seconds).</li> <li>Count the number of tests that were run (they should be the same for both test executions). Call this number N</li> </ol> <p>Calculate N/TP. This is the number of tests you <strong>could have</strong> run per seconds if all your tests had obeyed the <a class="confluence-link unresolved" data-content-title="Ashcroft Commandments" data-linked-resource-default-alias="Ashcroft Commandments" href="#">Ashcroft Commandments</a>. You will probably find that N/TP is somewhere around 100 test methods per second. Or 10 milliseconds per test method if you will. (TODO: verify these numbers on a couple of OSS projects)</p> <p>Calculate TP/TA. This is your Testing Pain Index (TPI). It should be as close as possible to 1. Anything over 10 is extremely painful. The Test Execution Frequency (TEF) is inversely proportional to the TPI. Examples to come hopefully - in the meanwhile take it with a grain of salt. <img class="emoticon emoticon-smile" data-emoticon-name="smile" border="0" src="/s/en_GB/3278/15/_/images/icons/emoticons/smile.png" alt="(smile)" title="(smile)" /></p> <p>Does this sound intriguing to you? If it does, go ahead and enable Ashcroft and follow his advice to make your tests fast. -And your business logic decoupled from infrastructure!</p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced