зеркало из https://github.com/mozilla/treeherder.git
Bug 1336556 - Remove unused UI tests
Remove old js test stubs and e2e tests superseded by selenium
This commit is contained in:
Родитель
62a32c3387
Коммит
c4427609a3
|
@ -189,11 +189,3 @@ notifications:
|
|||
email:
|
||||
on_success: never
|
||||
on_failure: always
|
||||
|
||||
# Do not run these on the travis server at this time.
|
||||
# The end to end tests require the service to be running, but travis can't
|
||||
# start the service for us. So we would have to have the default point to
|
||||
# a dedicated dev service instance that is reach-able by travis. However, we
|
||||
# require /etc/hosts to have an entry at this point to reach our current dev
|
||||
# server. So these tests should be run only locally for now.
|
||||
# - karma start config/karma-e2e.conf.js --reporters=dots --browsers=Firefox
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
module.exports = function (config) {
|
||||
config.set({
|
||||
frameworks: ['ng-scenario'],
|
||||
|
||||
basePath: '../../../',
|
||||
|
||||
files: [
|
||||
'tests/ui/e2e/**/*.js',
|
||||
|
||||
// fixtures
|
||||
{pattern: 'tests/ui/mock/*.json', watched: true, served: true, included: false}
|
||||
],
|
||||
|
||||
autoWatch: false,
|
||||
singleRun: true,
|
||||
|
||||
browsers: ['Firefox'],
|
||||
|
||||
proxies: {
|
||||
'/': 'http://localhost:8000/'
|
||||
},
|
||||
urlRoot: '/',
|
||||
plugins : [
|
||||
'karma-junit-reporter',
|
||||
'karma-chrome-launcher',
|
||||
'karma-firefox-launcher',
|
||||
'karma-jasmine',
|
||||
'karma-ng-scenario'
|
||||
],
|
||||
junitReporter: {
|
||||
outputFile: 'test_out/e2e.xml',
|
||||
suite: 'e2e'
|
||||
}
|
||||
});
|
||||
};
|
|
@ -1,11 +0,0 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>End2end Test Runner</title>
|
||||
<meta charset="utf-8">
|
||||
<script src="../vendor/angular/angular-scenario.js" ng-autotest></script>
|
||||
<script src="scenarios.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -1,30 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
/* http://docs.angularjs.org/guide/dev_guide.e2e-testing */
|
||||
|
||||
describe('treeherder', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
browser().navigateTo('app/index.html');
|
||||
});
|
||||
|
||||
|
||||
it('should automatically redirect to /jobs when location hash/fragment is empty', function() {
|
||||
expect(browser().location().url()).toBe("/jobs");
|
||||
});
|
||||
|
||||
|
||||
describe('view1', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
browser().navigateTo('#/jobs');
|
||||
});
|
||||
|
||||
|
||||
it('should render jobs when user navigates to /jobs', function() {
|
||||
expect(repeater('.result-set').count()).toBe(10);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
|
@ -1,11 +0,0 @@
|
|||
@echo off
|
||||
|
||||
REM Windows script for running e2e tests
|
||||
REM You have to run server and capture some browser first
|
||||
REM
|
||||
REM Requirements:
|
||||
REM - NodeJS (http://nodejs.org/)
|
||||
REM - Karma (npm install -g karma)
|
||||
|
||||
set BASE_DIR=%~dp0
|
||||
karma start "%BASE_DIR%\..\config\karma-e2e.conf.js" %*
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
BASE_DIR=`dirname $0`
|
||||
|
||||
echo ""
|
||||
echo "Starting Karma Server (http://karma-runner.github.io)"
|
||||
echo "-------------------------------------------------------------------"
|
||||
|
||||
karma start $BASE_DIR/../config/karma-e2e.conf.js $*
|
|
@ -1,19 +0,0 @@
|
|||
#!/usr/bin/env watchr
|
||||
|
||||
# config file for watchr http://github.com/mynyml/watchr
|
||||
# install: gem install watchr
|
||||
# run: watch watchr.rb
|
||||
# note: make sure that you have jstd server running (server.sh) and a browser captured
|
||||
|
||||
log_file = File.expand_path(File.dirname(__FILE__) + '/../jstd.log')
|
||||
|
||||
`cd ..`
|
||||
`touch #{log_file}`
|
||||
|
||||
puts "String watchr... log file: #{log_file}"
|
||||
|
||||
watch( '(app/js|test/unit)' ) do
|
||||
`echo "\n\ntest run started @ \`date\`" > #{log_file}`
|
||||
`scripts/test.sh &> #{log_file}`
|
||||
end
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
/* jasmine specs for controllers go here */
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
/* jasmine specs for directives go here */
|
||||
|
||||
//describe('directives', function() {
|
||||
// beforeEach(module('myApp.directives'));
|
||||
//
|
||||
// describe('app-version', function() {
|
||||
// it('should print current version', function() {
|
||||
// module(function($provide) {
|
||||
// $provide.value('version', 'TEST_VER');
|
||||
// });
|
||||
// inject(function($compile, $rootScope) {
|
||||
// var element = $compile('<span app-version></span>')($rootScope);
|
||||
// expect(element.text()).toEqual('TEST_VER');
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
//});
|
|
@ -1,14 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
/* jasmine specs for services go here */
|
||||
|
||||
//describe('service', function() {
|
||||
// beforeEach(module('myApp.services'));
|
||||
//
|
||||
//
|
||||
// describe('version', function() {
|
||||
// it('should return current version', inject(function(version) {
|
||||
// expect(version).toEqual('0.1');
|
||||
// }));
|
||||
// });
|
||||
//});
|
Загрузка…
Ссылка в новой задаче