Skip to content

Commit 5c545c8

Browse files
author
Kasper Markus
committed
Merge pull request #41 from yzen/GPII-75
GPII-75: updated acceptance tests to the latest kettle test utils.
2 parents c290297 + 15fd017 commit 5c545c8

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

tests/AcceptanceTests.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ https://github.com/gpii/universal/LICENSE.txt
1616
"use strict";
1717
var fluid = require("universal"),
1818
path = require("path"),
19+
kettle = fluid.registerNamespace("kettle"),
1920
gpii = fluid.registerNamespace("gpii");
2021

21-
//fluid.registerNamespace("fluid.tests");
2222
fluid.require("../gpii/node_modules/registrySettingsHandler", require);
2323
fluid.require("../gpii/node_modules/registryResolver", require);
2424
fluid.require("../gpii/node_modules/spiSettingsHandler", require);
2525

26-
require("../../node_modules/universal/tests/AcceptanceTests.js", require);
26+
fluid.require("universal/tests/AcceptanceTests", require);
2727

2828
var configPath = path.resolve(__dirname, "./acceptanceTests/setup1/configs");
2929
var gpiiConfig = {
@@ -34,7 +34,7 @@ var gpiiConfig = {
3434
var testDefs = [
3535
{
3636
name: "Testing os_win7 using Flat matchmaker",
37-
gpiiConfig: gpiiConfig,
37+
config: gpiiConfig,
3838
token: "os_win7",
3939
settingsHandlers: {
4040
"gpii.windows.spiSettingsHandler": {
@@ -179,7 +179,7 @@ var testDefs = [
179179
]
180180
}, {
181181
name: "Testing os_common using Flat matchmaker",
182-
gpiiConfig: gpiiConfig,
182+
config: gpiiConfig,
183183
token: "os_common",
184184
settingsHandlers: {
185185
"gpii.windows.spiSettingsHandler": {
@@ -324,7 +324,7 @@ var testDefs = [
324324
]
325325
}, {
326326
name: "Testing os_gnome using Flat matchmaker",
327-
gpiiConfig: gpiiConfig,
327+
config: gpiiConfig,
328328
token: "os_gnome",
329329
settingsHandlers: {
330330
"gpii.windows.registrySettingsHandler": {
@@ -414,7 +414,7 @@ var testDefs = [
414414
]
415415
}, {
416416
name: "Testing screenreader_nvda using Flat matchmaker",
417-
gpiiConfig: gpiiConfig,
417+
config: gpiiConfig,
418418
token: "screenreader_nvda",
419419
settingsHandlers: {
420420
"gpii.settingsHandlers.INISettingsHandler": {
@@ -439,7 +439,8 @@ var testDefs = [
439439
"speech.espeak.sayCapForCapitals": true
440440
},
441441
"options": {
442-
"path": "${{environment}.APPDATA}\\nvda\\nvda.ini",
442+
// This needs to be addressed with GPII-497.
443+
"path": path.resolve(process.env.APPDATA, "nvda/nvda.ini"),
443444
"allowNumberSignComments": true,
444445
"allowSubSections": true
445446
}
@@ -456,7 +457,7 @@ var testDefs = [
456457
]
457458
}, {
458459
name: "Testing screenreader_common using Flat matchmaker",
459-
gpiiConfig: gpiiConfig,
460+
config: gpiiConfig,
460461
token: "screenreader_common",
461462
settingsHandlers: {
462463
"gpii.settingsHandlers.INISettingsHandler": {
@@ -479,7 +480,8 @@ var testDefs = [
479480
"speech.espeak.sayCapForCapitals": true
480481
},
481482
"options": {
482-
"path": "${{environment}.APPDATA}\\nvda\\nvda.ini",
483+
// This needs to be addressed with GPII-497.
484+
"path": path.resolve(process.env.APPDATA, "nvda/nvda.ini"),
483485
"allowNumberSignComments": true,
484486
"allowSubSections": true
485487
}
@@ -496,7 +498,7 @@ var testDefs = [
496498
]
497499
}, {
498500
name: "Testing screenreader_orca using Flat matchmaker",
499-
gpiiConfig: gpiiConfig,
501+
config: gpiiConfig,
500502
token: "screenreader_orca",
501503
settingsHandlers: {
502504
"gpii.settingsHandlers.INISettingsHandler": {
@@ -513,7 +515,8 @@ var testDefs = [
513515
"virtualBuffers.autoSayAllOnPageLoad": false
514516
},
515517
"options": {
516-
"path": "${{environment}.APPDATA}\\nvda\\nvda.ini",
518+
// This needs to be addressed with GPII-497.
519+
"path": path.resolve(process.env.APPDATA, "nvda/nvda.ini"),
517520
"allowNumberSignComments": true,
518521
"allowSubSections": true
519522
}
@@ -531,4 +534,5 @@ var testDefs = [
531534
}
532535
];
533536

534-
gpii.acceptanceTesting.runTests(testDefs, gpiiConfig);
537+
testDefs = gpii.acceptanceTesting.buildTests(testDefs);
538+
module.exports = kettle.tests.bootstrap(testDefs);

0 commit comments

Comments
 (0)