Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-1641

Update documentation with new test name parsing behaviour

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • None
    • Documentation (User)
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Hi Rosie,

      Bamboo 1.2.3 will need a small documentation update for the following improvement:

      Bamboo derives the names of test cases from the names of the methods that implement the test cases.

      For example, by convention, JUnit test cases usually have names prefixed with the word "test", with the remainder of the name in "camel case" e.g., "testUserCanBeDeleted". Bamboo removes the "test" prefix (if it exists) and forms a sentence from the rest of the name, using captials to identify the beginning of words. The previous example becomes "User can be deleted".

      Non-Java users (Ruby on Rails developers using Test::Unit, in particular) use different conventions for naming tests. The convention with Test::Unit is to use underscores to separate words, so the equivalent of the JUnit example above would be "test_user_can_be_deleted".

      Bamboo 1.2.3 will treat both capitals and underscores as word separators, so each of the following method names would result in a test case name of "User can be deleted":

      • testUserCanBeDeleted
      • test_user_can_be_deleted
      • testuserCan_be_Deleted
      • userCan_BeDeleted

      Please see BAM-1439 or me if you need further details.

      Cheers,
      Adrian

              rosie@atlassian.com Rosie Jameson [Atlassian] (Inactive)
              ahempel Adrian Hempel [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: