[jbosstools-dev] Stopping the JBIDEXYZTest madness
Max Rydahl Andersen
max.andersen at redhat.com
Mon Aug 3 10:16:45 EDT 2009
Hi,
I would like to make a shout out to everybody to please stop naming test
methods and classes after jira issues.
If a test is related to an jira put it as part of the javadoc or something.
Trying to figure out what a test is actually supposed to do should not
require looking up a jira.
Having the jira id there is nice and I encourage you to have it in the
docs so if really needed
Name it based on what the test is about, i.e.
testCreateJSFProjectWithNonExistentFolder instead of testJBIDE1234
or if you *really* want it there call it
testCreateJSFProjectWithNonExistentFolder_JBIDE1234
I know I create a test once based on a jira id and I have regretted it
ever since because now its almost impossible
to understand what a test is about without having to go read the jira.
Plus, a jira seldomly can be tested with only one test method - should
be more than one to avoid gigantic nonmaintainable tests
Thanks!: )
/max
More information about the jbosstools-dev
mailing list