Bug 1336556 - Remove unused UI tests

Remove old js test stubs and e2e tests superseded by selenium
This commit is contained in:
Casey Williams 2017-02-28 08:05:46 -08:00 коммит произвёл Ed Morley
Родитель 62a32c3387
Коммит c4427609a3
10 изменённых файлов: 0 добавлений и 160 удалений

Просмотреть файл

@ -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');
// }));
// });
//});