• Icon: Suggestion Suggestion
    • Resolution: Fixed
    • 1.2.3
    • Tasks, Tests
    • 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.

      Ruby tests are written like this:

      def test_can_open_metadata
        # Test
      end
      

      When the Test::Unit tests are run through CI Reporter and played on Bamboo, they show up like test_can_open_metadata. A Java test named testCanOpenMetadata() would show up as _Can Open Metadata, which is nice from a legibility perspective. Would be nice if Bamboo could do the same with ruby test methods, so t hat it would show up as Can Open Metadata as well.

      This is just one more way that Bamboo could enhance its support for Ruby on Rails development.

            [BAM-1439] Reformat underscore-style test names

            Merged onto 1.2 branch.

            Adrian Hempel [Atlassian] added a comment - Merged onto 1.2 branch.

            Capitals and underscores are now both recognised as word separators.

            Adrian Hempel [Atlassian] added a comment - Capitals and underscores are now both recognised as word separators.

            Mark,

            Why can't we just handle all cases? If they have testAction_can_openFile shouldn't we just handle it?

            Why would we need an option?

            Scott Farquhar added a comment - Mark, Why can't we just handle all cases? If they have testAction_can_openFile shouldn't we just handle it? Why would we need an option?

            MarkC added a comment -

            Geoffrey,

            Thanks for the suggestion!

            We should have an "Advanced Option" section in the build configuration that allows you to choose what type of name transformation to have. The three at the moment are

            1. Default (testActionCanOpenFile)
            2. Underscore (test_action_can_open_file)
            3. No translation

            Cheers,

            Mark C

            MarkC added a comment - Geoffrey, Thanks for the suggestion! We should have an "Advanced Option" section in the build configuration that allows you to choose what type of name transformation to have. The three at the moment are Default (testActionCanOpenFile) Underscore (test_action_can_open_file) No translation Cheers, Mark C

            Geoffrey added a comment -

            Ah, foo. I didn't adequately prepare for the fact that Confluence syntax was going to mangle some of my text.

            The Test::Unit test shows up in Bamboo as _test_can_open_metadata

            Geoffrey added a comment - Ah, foo. I didn't adequately prepare for the fact that Confluence syntax was going to mangle some of my text. The Test::Unit test shows up in Bamboo as _test_can_open_metadata

              Unassigned Unassigned
              3cf8fb86066b Geoffrey
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: