Add performance smoke suite
This commit is contained in:
5
Rakefile
5
Rakefile
@@ -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:"
|
||||
|
||||
21
spec/jasmine-performance.yml
Normal file
21
spec/jasmine-performance.yml
Normal 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'
|
||||
|
||||
|
||||
10
spec/smoke/performance_test.js
Normal file
10
spec/smoke/performance_test.js
Normal 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);
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user