git-svn-id: https://beef.googlecode.com/svn/trunk@1323 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
22 lines
494 B
Ruby
22 lines
494 B
Ruby
|
|
begin
|
|
require 'test/unit/ui/console/testrunner'
|
|
rescue LoadError
|
|
puts "The following instruction failed: require 'test/unit/ui/console/testrunner'"
|
|
puts "Please run: sudo gem install test-unit-full"
|
|
exit
|
|
end
|
|
|
|
require './core/filter/tc_base'
|
|
require './core/filter/tc_command'
|
|
|
|
class TS_BeefTests
|
|
def self.suite
|
|
suite = Test::Unit::TestSuite.new(name="BeEF TestSuite")
|
|
suite << TC_Filter.suite
|
|
return suite
|
|
end
|
|
end
|
|
|
|
Test::Unit::UI::Console::TestRunner.run(TS_BeefTests)
|