Add performance smoke suite

This commit is contained in:
Davis W. Frank & Rajan Agaskar
2012-11-29 12:17:44 -08:00
parent dfed37531e
commit 34bd1969e7
3 changed files with 34 additions and 2 deletions

View File

@@ -55,9 +55,10 @@ end
namespace :jasmine do
task :server do
port = ENV['JASMINE_PORT'] || 8888
Jasmine.load_configuration_from_yaml(File.join(Dir.pwd, 'spec', 'jasmine.yml'))
jasmine_yml = ENV['JASMINE_YML'] || 'jasmine.yml'
Jasmine.load_configuration_from_yaml(File.join(Dir.pwd, 'spec', jasmine_yml))
config = Jasmine.config
server = Jasmine::Server.new(8888, Jasmine::Application.app(config))
server = Jasmine::Server.new(port, Jasmine::Application.app(config))
server.start
puts "your tests are here:"

View File

@@ -0,0 +1,21 @@
jasmine_dir:
- 'src'
jasmine_files:
- 'core/base.js'
- 'core/util.js'
- 'core/Reporter.js'
- 'html/HtmlReporterHelpers.js'
- 'core/ExpectationResult.js'
- '**/*.js'
jasmine_css_files:
- 'html/jasmine.css'
src_files:
stylesheets:
helpers:
spec_files:
- 'smoke/performance_test.js'
src_dir:
spec_dir:
- 'spec'

View File

@@ -0,0 +1,10 @@
describe("performance", function() {
for (var i = 0; i < 10000; i++) {
it("should pass", function() {
expect(true).toBe(true);
});
it("should fail", function() {
expect(true).toBe(false);
});
}
});