Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-535

Failing "checks" produce no meaningful errors on JRuby

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.2
    • 1.4.3
    • Test frameworks
    • None

    Description

      Adding checks to build are expected to cause the build to fail with a meaningful failure reason. However it looks like the method "Object.error" is redefined somewhere and thus when the check fails it results in an exception such as

      "Buildr aborted!
      ArgumentError : wrong # of arguments(1 for 0)"

      An example build file exhibiting this failure:

      define 'foo' do
        project.version = '1.0'
        project.group = 'foo'
        package :jar
        
        check package(:jar), 'should fail' do
          it.should contain('META-INF/MANIFEST.MF_not_exist')
        end
      end
      

      Attachments

        Activity

          People

            boisvert Alex Boisvert
            pdonald Peter Donald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: