Permalink
Browse files

Use maven-rf plugin to run tests

  • Loading branch information...
1 parent cdd0f07 commit c580d0d4b361552f9be81c7d6acc026adfb1234f @yanne yanne committed Aug 26, 2011
Showing with 14 additions and 35 deletions.
  1. +14 −1 pom.xml
  2. +0 −34 src/test/resources/robotframework/tests/run.rb
View
15 pom.xml
@@ -149,7 +149,20 @@
</execution>
</executions>
</plugin>
- </plugins>
+
+ <plugin>
+ <groupId>com.googlecode.robotframework-maven-plugin</groupId>
+ <artifactId>robotframework-maven-plugin</artifactId>
+ <version>1.1.1</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
</build>
<reporting>
@@ -1,34 +0,0 @@
-#!/usr/bin/ruby
-
-require 'fileutils'
-
-def find_root(file)
- if File.exist?("#{Dir.pwd}/#{file}")
- "#{Dir.pwd}/#{file}"
- else
- find_root("../#{file}")
- end
-end
-
-def root_dir
- this_dir = Dir.pwd
- Dir.chdir(File.dirname(find_root('pom.xml')))
- retval = yield(Dir.pwd)
- Dir.chdir(this_dir)
- retval
-end
-
-ENV['CLASSPATH'] = root_dir do |dir|
- unless File.directory?("#{dir}/target/test-classes")
- system "mvn test-compile"
- end
-
- unless File.directory?("#{dir}/target/dependency")
- system "mvn dependency:copy-dependencies -Dscope=test"
- end
-
- classpath = Dir["#{dir}/target/dependency/*.jar"] << "#{dir}/target/classes" << "#{dir}/target/test-classes"
- classpath.join(':')
-end
-
-system "jybot --loglevel TRACE --outputdir /tmp #{ARGV.join(' ')}"

0 comments on commit c580d0d

Please sign in to comment.