Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7be2105f
Commit
7be2105f
authored
Dec 26, 2014
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1272 from matschaffer/plugin-spec-support
Allow for plugin testing.
parents
49ee388d
85e50ece
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
23 additions
and
15 deletions
+23
-15
src/test/specs/graph-ctrl-specs.js
+1
-1
src/test/specs/graph-specs.js
+1
-1
src/test/specs/graphiteDatasource-specs.js
+1
-1
src/test/specs/graphiteTargetCtrl-specs.js
+1
-1
src/test/specs/influxdb-datasource-specs.js
+1
-1
src/test/specs/row-ctrl-specs.js
+1
-1
src/test/specs/seriesOverridesCtrl-specs.js
+1
-1
src/test/specs/sharePanelCtrl-specs.js
+1
-1
src/test/specs/templateValuesSrv-specs.js
+1
-1
src/test/specs/timeSrv-specs.js
+1
-1
src/test/test-main.js
+12
-5
tasks/options/jscs.js
+1
-0
No files found.
src/test/specs/graph-ctrl-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'panels/graph/module'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/graph-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'angular'
,
'jquery'
,
'components/timeSeries'
,
...
...
src/test/specs/graphiteDatasource-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'services/graphite/graphiteDatasource'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/graphiteTargetCtrl-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'services/graphite/gfunc'
,
'controllers/graphiteTarget'
],
function
(
helpers
,
gfunc
)
{
...
...
src/test/specs/influxdb-datasource-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'services/influxdb/influxdbDatasource'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/row-ctrl-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'controllers/row'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/seriesOverridesCtrl-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'panels/graph/seriesOverridesCtrl'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/sharePanelCtrl-specs.js
View file @
7be2105f
define
([
'
./
helpers'
,
'helpers'
,
'controllers/sharePanelCtrl'
],
function
(
helpers
)
{
'use strict'
;
...
...
src/test/specs/templateValuesSrv-specs.js
View file @
7be2105f
define
([
'mocks/dashboard-mock'
,
'
./
helpers'
,
'helpers'
,
'moment'
,
'services/templateValuesSrv'
],
function
(
dashboardMock
,
helpers
,
moment
)
{
...
...
src/test/specs/timeSrv-specs.js
View file @
7be2105f
define
([
'mocks/dashboard-mock'
,
'
./
helpers'
,
'helpers'
,
'lodash'
,
'services/timeSrv'
],
function
(
dashboardMock
,
helpers
,
_
)
{
...
...
src/test/test-main.js
View file @
7be2105f
...
...
@@ -4,7 +4,8 @@ require.config({
paths
:
{
specs
:
'../test/specs'
,
mocks
:
'../test/mocks'
,
config
:
'../config.sample'
,
helpers
:
'../test/specs/helpers'
,
config
:
[
'../config'
,
'../config.sample'
],
kbn
:
'components/kbn'
,
store
:
'components/store'
,
...
...
@@ -96,9 +97,10 @@ require.config({
require
([
'angular'
,
'config'
,
'angularMocks'
,
'app'
,
],
function
(
angular
)
{
],
function
(
angular
,
config
)
{
'use strict'
;
for
(
var
file
in
window
.
__karma__
.
files
)
{
...
...
@@ -113,7 +115,7 @@ require([
angular
.
module
(
'grafana.panels'
,
[]);
angular
.
module
(
'grafana.filters'
,
[]);
require
(
[
var
specs
=
[
'specs/lexer-specs'
,
'specs/parser-specs'
,
'specs/gfunc-specs'
,
...
...
@@ -135,9 +137,14 @@ require([
'specs/kbn-format-specs'
,
'specs/dashboardSrv-specs'
,
'specs/dashboardViewStateSrv-specs'
],
function
()
{
window
.
__karma__
.
start
();
];
var
pluginSpecs
=
(
config
.
plugins
.
specs
||
[]).
map
(
function
(
spec
)
{
return
'../plugins/'
+
spec
;
});
require
(
specs
.
concat
(
pluginSpecs
),
function
()
{
window
.
__karma__
.
start
();
});
});
tasks/options/jscs.js
View file @
7be2105f
...
...
@@ -3,6 +3,7 @@ module.exports = function(config) {
src
:
[
'Gruntfile.js'
,
'<%= srcDir %>/app/**/*.js'
,
'<%= srcDir %>/plugins/**/*.js'
,
'!<%= srcDir %>/app/panels/*/{lib,leaflet}/*'
,
'!<%= srcDir %>/app/dashboards/*'
],
...
...
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