Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
3c279d5b
Commit
3c279d5b
authored
Mar 30, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Karma Tests
parent
a9236b50
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
96 additions
and
51 deletions
+96
-51
angular-cli.json
Breeze.UI/angular-cli.json
+7
-6
karma.conf.js
Breeze.UI/karma.conf.js
+16
-13
package.json
Breeze.UI/package.json
+17
-13
protractor.conf.js
Breeze.UI/protractor.conf.js
+5
-1
app.component.spec.ts
Breeze.UI/src/app/app.component.spec.ts
+4
-13
tsconfig.app.json
Breeze.UI/src/tsconfig.app.json
+18
-0
tsconfig.spec.json
Breeze.UI/src/tsconfig.spec.json
+24
-0
tsconfig.json
Breeze.UI/tsconfig.json
+0
-0
webpack.config.js
Breeze.UI/webpack.config.js
+5
-5
No files found.
Breeze.UI/angular-cli.json
View file @
3c279d5b
...
...
@@ -14,8 +14,8 @@
"main"
:
"main.ts"
,
"polyfills"
:
"polyfills.ts"
,
"test"
:
"test.ts"
,
"tsconfig"
:
"tsconfig.json"
,
"testTsconfig"
:
"tsconfig.json"
,
"tsconfig"
:
"tsconfig.
app.
json"
,
"testTsconfig"
:
"tsconfig.
spec.
json"
,
"prefix"
:
"app"
,
"styles"
:
[
"../node_modules/bootstrap/dist/css/bootstrap.min.css"
,
...
...
@@ -36,12 +36,13 @@
},
"lint"
:
[
{
"files"
:
"src/**/*.ts"
,
"project"
:
"src/tsconfig.json"
"project"
:
"src/tsconfig.app.json"
},
{
"files"
:
"e2e/**/*.ts"
,
"project"
:
"e2e/tsconfig.json"
"project"
:
"src/tsconfig.spec.json"
},
{
"project"
:
"e2e/tsconfig.e2e.json"
}
],
"test"
:
{
...
...
Breeze.UI/karma.conf.js
View file @
3c279d5b
...
...
@@ -4,40 +4,43 @@
module
.
exports
=
function
(
config
)
{
config
.
set
({
basePath
:
''
,
frameworks
:
[
'jasmine'
,
'
angular-
cli'
],
frameworks
:
[
'jasmine'
,
'
@angular/
cli'
],
plugins
:
[
require
(
'karma-jasmine'
),
require
(
'karma-chrome-launcher'
),
require
(
'karma-remap-istanbul'
),
require
(
'angular-cli/plugins/karma'
)
require
(
'karma-electron'
),
require
(
'karma-jasmine-html-reporter'
),
require
(
'karma-coverage-istanbul-reporter'
),
require
(
'@angular/cli/plugins/karma'
)
],
client
:{
useIframe
:
false
,
clearContext
:
false
// leave Jasmine Spec Runner output visible in browser
},
files
:
[
{
pattern
:
'./src/test.ts'
,
watched
:
false
}
],
preprocessors
:
{
'./src/test.ts'
:
[
'
angular-
cli'
]
'./src/test.ts'
:
[
'
@angular/
cli'
]
},
mime
:
{
'text/x-typescript'
:
[
'ts'
,
'tsx'
]
},
remapIstanbulReporter
:
{
reports
:
{
html
:
'coverage'
,
lcovonly
:
'./coverage/coverage.lcov'
}
coverageIstanbulReporter
:
{
reports
:
[
'html'
,
'lcovonly'
],
fixWebpackSourcePaths
:
true
},
angularCli
:
{
config
:
'./angular-cli.json'
,
environment
:
'dev'
},
reporters
:
config
.
angularCli
&&
config
.
angularCli
.
codeCoverage
?
[
'progress'
,
'
karma-remap
-istanbul'
]
:
[
'progress'
],
?
[
'progress'
,
'
coverage
-istanbul'
]
:
[
'progress'
,
'kjhtml'
],
port
:
9876
,
colors
:
true
,
logLevel
:
config
.
LOG_INFO
,
autoWatch
:
true
,
browsers
:
[
'
Chrome
'
],
browsers
:
[
'
Electron
'
],
singleRun
:
false
});
};
Breeze.UI/package.json
View file @
3c279d5b
...
...
@@ -44,41 +44,45 @@
"@types/electron"
:
"^1.4.35"
,
"@types/jasmine"
:
"2.5.46"
,
"@types/node"
:
"~7.0.12"
,
"autoprefixer"
:
"^6.5.3"
,
"codelyzer"
:
"~2.0.0"
,
"concurrently"
:
"^3.4.0"
,
"copy-webpack-plugin"
:
"^4.0.1"
,
"css-loader"
:
"^0.26.1"
,
"cssnano"
:
"^3.10.0"
,
"electron"
:
"^1.6.2"
,
"electron-packager"
:
"^8.6.0"
,
"exports-loader"
:
"^0.6.3"
,
"extract-text-webpack-plugin"
:
"^2.1.0"
,
"file-loader"
:
"^0.10.0"
,
"html-webpack-plugin"
:
"^2.28.0"
,
"istanbul-instrumenter-loader"
:
"^2.0.0"
,
"jasmine-core"
:
"~2.5.2"
,
"jasmine-spec-reporter"
:
"~3.2.0"
,
"json-loader"
:
"^0.5.4"
,
"karma"
:
"~1.5.0"
,
"karma-chrome-launcher"
:
"~2.0.0"
,
"karma-cli"
:
"~1.0.1"
,
"karma-coverage-istanbul-reporter"
:
"^1.0.0"
,
"karma-electron"
:
"^5.1.1"
,
"karma-jasmine"
:
"~1.1.0"
,
"karma-jasmine-html-reporter"
:
"^0.2.2"
,
"protractor"
:
"~5.1.1"
,
"ts-node"
:
"~3.0.2"
,
"tslint"
:
"~4.5.1"
,
"typescript"
:
"^2.2.2"
,
"webpack-dev-server"
:
"~2.3.0"
,
"autoprefixer"
:
"^6.5.3"
,
"css-loader"
:
"^0.26.1"
,
"cssnano"
:
"^3.10.0"
,
"exports-loader"
:
"^0.6.3"
,
"file-loader"
:
"^0.10.0"
,
"json-loader"
:
"^0.5.4"
,
"karma-sourcemap-loader"
:
"^0.3.7"
,
"less-loader"
:
"^2.2.3"
,
"postcss-loader"
:
"^0.13.0"
,
"postcss-url"
:
"^5.1.2"
,
"protractor"
:
"~5.1.1"
,
"raw-loader"
:
"^0.5.1"
,
"sass-loader"
:
"^4.1.1"
,
"script-loader"
:
"^0.7.0"
,
"source-map-loader"
:
"^0.1.5"
,
"istanbul-instrumenter-loader"
:
"^2.0.0"
,
"style-loader"
:
"^0.13.1"
,
"stylus-loader"
:
"^2.4.0"
,
"url-loader"
:
"^0.5.7"
"ts-node"
:
"~3.0.2"
,
"tslint"
:
"~4.5.1"
,
"typescript"
:
"^2.2.2"
,
"url-loader"
:
"^0.5.7"
,
"webpack"
:
"^2.3.2"
,
"webpack-dev-server"
:
"~2.3.0"
}
}
Breeze.UI/protractor.conf.js
View file @
3c279d5b
...
...
@@ -10,6 +10,10 @@ exports.config = {
'./e2e/**/*.e2e-spec.ts'
],
capabilities
:
{
chromeOptions
:
{
binary
:
'./node_modules/electron/dist/electron'
,
args
:
[
'--test-type=webdriver'
]
},
'browserName'
:
'chrome'
},
directConnect
:
true
,
...
...
@@ -23,7 +27,7 @@ exports.config = {
useAllAngular2AppRoots
:
true
,
beforeLaunch
:
function
()
{
require
(
'ts-node'
).
register
({
project
:
'e2e'
project
:
'e2e
/tsconfig.e2e.json
'
});
},
onPrepare
:
function
()
{
...
...
Breeze.UI/src/app/app.component.spec.ts
View file @
3c279d5b
...
...
@@ -2,6 +2,7 @@
import
{
TestBed
,
async
}
from
'@angular/core/testing'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
RouterTestingModule
}
from
'@angular/router/testing'
;
describe
(
'AppComponent'
,
()
=>
{
beforeEach
(()
=>
{
...
...
@@ -9,6 +10,9 @@ describe('AppComponent', () => {
declarations
:
[
AppComponent
],
imports
:
[
RouterTestingModule
]
});
TestBed
.
compileComponents
();
});
...
...
@@ -18,17 +22,4 @@ describe('AppComponent', () => {
const
app
=
fixture
.
debugElement
.
componentInstance
;
expect
(
app
).
toBeTruthy
();
}));
it
(
`should have as title 'app works!'`
,
async
(()
=>
{
const
fixture
=
TestBed
.
createComponent
(
AppComponent
);
const
app
=
fixture
.
debugElement
.
componentInstance
;
expect
(
app
.
title
).
toEqual
(
'app works!'
);
}));
it
(
'should render title in a h1 tag'
,
async
(()
=>
{
const
fixture
=
TestBed
.
createComponent
(
AppComponent
);
fixture
.
detectChanges
();
const
compiled
=
fixture
.
debugElement
.
nativeElement
;
expect
(
compiled
.
querySelector
(
'h1'
).
textContent
).
toContain
(
'app works!'
);
}));
});
Breeze.UI/src/tsconfig.app.json
0 → 100644
View file @
3c279d5b
{
"extends"
:
"../tsconfig.json"
,
"compilerOptions"
:
{
"outDir"
:
"../out-tsc/app"
,
"module"
:
"es2015"
,
"baseUrl"
:
""
,
"typeRoots"
:
[
"../node_modules/@types"
],
"types"
:
[
"node"
]
},
"exclude"
:
[
"test.ts"
,
"**/*.spec.ts"
]
}
\ No newline at end of file
Breeze.UI/src/tsconfig.spec.json
0 → 100644
View file @
3c279d5b
{
"extends"
:
"../tsconfig.json"
,
"compilerOptions"
:
{
"outDir"
:
"../out-tsc/spec"
,
"module"
:
"commonjs"
,
"target"
:
"es5"
,
"baseUrl"
:
""
,
"typeRoots"
:
[
"../node_modules/@types"
],
"types"
:
[
"jasmine"
,
"node"
]
},
"files"
:
[
"test.ts"
],
"include"
:
[
"**/*.spec.ts"
,
"**/*.d.ts"
]
}
Breeze.UI/
src/
tsconfig.json
→
Breeze.UI/tsconfig.json
View file @
3c279d5b
File moved
Breeze.UI/webpack.config.js
View file @
3c279d5b
...
...
@@ -198,10 +198,6 @@ module.exports = {
},
"plugins"
:
[
new
NoEmitOnErrorsPlugin
(),
new
CopyWebpackPlugin
([{
context
:
path
.
resolve
(
__dirname
,
"src"
),
from
:
"electron.js"
}]),
new
GlobCopyWebpackPlugin
({
"patterns"
:
[
"assets"
...
...
@@ -212,6 +208,10 @@ module.exports = {
"ignore"
:
"**/.gitkeep"
}
}),
new
CopyWebpackPlugin
([{
context
:
path
.
resolve
(
__dirname
,
"src"
),
from
:
"electron.js"
}]),
new
ProgressPlugin
(),
new
HtmlWebpackPlugin
({
"template"
:
"./src/index.html"
,
...
...
@@ -299,7 +299,7 @@ module.exports = {
"environments/environment.ts"
:
"environments/environment.ts"
},
"exclude"
:
[],
"tsConfigPath"
:
"src/tsconfig.json"
,
"tsConfigPath"
:
"src/tsconfig.
app.
json"
,
"skipCodeGeneration"
:
true
})
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment