Skip to content

Commit 2e6bf1d

Browse files
author
kaspermarkus
committed
GPII-564: Moved built in acceptance test to its own file, following the new format for acceptance tests, added required config file
1 parent aa2f124 commit 2e6bf1d

File tree

4 files changed

+26
-20
lines changed

4 files changed

+26
-20
lines changed

tests/acceptanceTests/AcceptanceTests.js renamed to tests/acceptanceTests/AcceptanceTests_builtIn.js

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
GPII Acceptance Testing
44
5-
Copyright 2013 Raising the Floor International
5+
Copyright 2014 Raising the Floor International
66
77
Licensed under the New BSD license. You may not use this file except in
88
compliance with this License.
@@ -11,30 +11,18 @@ You may obtain a copy of the License at
1111
https://github.com/gpii/universal/LICENSE.txt
1212
*/
1313

14-
/*global __dirname, require*/
14+
/*global require,process*/
1515

1616
"use strict";
1717
var fluid = require("universal"),
1818
path = require("path"),
19-
kettle = fluid.registerNamespace("kettle"),
2019
gpii = fluid.registerNamespace("gpii");
2120

22-
fluid.require("../gpii/node_modules/registrySettingsHandler", require);
23-
fluid.require("../gpii/node_modules/registryResolver", require);
24-
fluid.require("../gpii/node_modules/spiSettingsHandler", require);
25-
26-
fluid.require("universal/tests/AcceptanceTests", require);
27-
28-
var configPath = path.resolve(__dirname, "./acceptanceTests/setup1/configs");
29-
var gpiiConfig = {
30-
nodeEnv: "development-config",
31-
configPath: configPath
32-
};
21+
fluid.require("./AcceptanceTests_include", require);
3322

3423
var testDefs = [
3524
{
3625
name: "Testing os_win7 using Flat matchmaker",
37-
config: gpiiConfig,
3826
token: "os_win7",
3927
settingsHandlers: {
4028
"gpii.windows.spiSettingsHandler": {
@@ -179,7 +167,6 @@ var testDefs = [
179167
]
180168
}, {
181169
name: "Testing os_common using Flat matchmaker",
182-
config: gpiiConfig,
183170
token: "os_common",
184171
settingsHandlers: {
185172
"gpii.windows.spiSettingsHandler": {
@@ -324,7 +311,6 @@ var testDefs = [
324311
]
325312
}, {
326313
name: "Testing os_gnome using Flat matchmaker",
327-
config: gpiiConfig,
328314
token: "os_gnome",
329315
settingsHandlers: {
330316
"gpii.windows.registrySettingsHandler": {
@@ -415,5 +401,4 @@ var testDefs = [
415401
}
416402
];
417403

418-
testDefs = gpii.acceptanceTesting.buildTests(testDefs);
419-
module.exports = kettle.tests.bootstrap(testDefs);
404+
gpii.acceptanceTesting.windows.runTests("builtIn_config", testDefs);
File renamed without changes.

tests/acceptanceTests/AcceptanceTests_nvda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var fluid = require("universal"),
1818
path = require("path"),
1919
gpii = fluid.registerNamespace("gpii");
2020

21-
fluid.require("./AcceptanceTests_incl", require);
21+
fluid.require("./AcceptanceTests_include", require);
2222

2323
var testDefs = [
2424
{
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"typeName": "acceptanceTests.builtIn",
3+
"options": {
4+
"components": {
5+
"server": {
6+
"options": {
7+
"components": {
8+
"deviceReporter": {
9+
"options": {
10+
"installedSolutionsUrl": "file://%root/../../../testData/deviceReporter/acceptanceTests/builtIn.json"
11+
}
12+
}
13+
}
14+
}
15+
}
16+
}
17+
},
18+
"includes": [
19+
"../../../../node_modules/universal/tests/acceptanceTests/localInstall.json"
20+
]
21+
}

0 commit comments

Comments
 (0)