Commits

Bob Swift committed 6b1110c

GINT-50: Get tests working

Comments (0)

Files changed (4)

src/itest/groovy/helperTest.gant

 )
 
 // Misc tests
-gint.add(name: 'getMapValueHandleClosure',
-    inline: {
-        def map = [key1: 'value1']
-        assert helper.getMapValueHandleClosure(map, 'key1') == 'value1'
-        assert helper.getMapValueHandleClosure(map, { -> 'key1' }) == 'value1'
-    },
-)
 
 gint.add(name: 'getColumn',
     inline: {

src/itest/groovy/jiraSelenium.gant

 @Grab(group='org.seleniumhq.selenium', module='selenium-chrome-driver', version='2.40.0')
 @Grab(group='org.seleniumhq.selenium', module='selenium-safari-driver', version='2.40.0')
 @Grab(group='org.seleniumhq.selenium', module='selenium-ie-driver', version='2.40.0')
+@GrabConfig(systemClassLoader=true) // needed to run when using classpath instead of grab for accessing gint jar
 
 import org.swift.tools.*
 import org.openqa.selenium.*
         button.submit()
 
         element = seleniumHelper.findElement(text: bannerText)
-        assert element // can we find the banner text
+        assert element // can we find the banner text on the screen?
         return true
     }
 )
 
-
-
 gint.finalizeTest() // final preparations for running tests

src/itest/groovy/seleniumHelperTest.gant

 @Grab(group='org.seleniumhq.selenium', module='selenium-chrome-driver', version='2.40.0')
 @Grab(group='org.seleniumhq.selenium', module='selenium-safari-driver', version='2.40.0')
 @Grab(group='org.seleniumhq.selenium', module='selenium-ie-driver', version='2.40.0')
-@GrabConfig(systemClassLoader=true)
+@GrabConfig(systemClassLoader=true) // needed to run when using classpath instead of grab for accessing gint jar
 
 import org.swift.tools.*
 

src/main/groovy/org/swift/tools/GintCmdGenerator.groovy

         }
 
         if (testcase.omitDocumentation != true) {
-            content.append "\n\nh4. Test"
+            content.append isStorageFormat ? '<h4>Test</h4>' : '\n\nh4. Test'
             content.append('\n')
         }