-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(best): Converted IE runner into general webdriver runner
- Loading branch information
Dinko
committed
May 23, 2018
1 parent
63d97c6
commit 6061f7d
Showing
9 changed files
with
202 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
projectName: 'simple-benchmark-chrome', | ||
benchmarkOnClient: true, | ||
"runnerConfig": [ | ||
{ | ||
"runner": "@best/runner-webdriver", | ||
"name": "default", | ||
"config": { | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "chrome", | ||
}, | ||
} | ||
} | ||
}, | ||
{ | ||
"runner": "@best/runner-remote", | ||
"name": "remote", | ||
"config": { | ||
"host": "http://localhost:5000", | ||
"options": { path: "/best" }, | ||
"remoteRunner": "@best/runner-webdriver", | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "chrome", | ||
}, | ||
} | ||
} | ||
} | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
projectName: 'simple-benchmark-firefox', | ||
benchmarkOnClient: true, | ||
"runnerConfig": [ | ||
{ | ||
"runner": "@best/runner-webdriver", | ||
"name": "default", | ||
"config": { | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "firefox", | ||
}, | ||
} | ||
} | ||
}, | ||
{ | ||
"runner": "@best/runner-remote", | ||
"name": "remote", | ||
"config": { | ||
"host": "http://localhost:5000", | ||
"options": { path: "/best" }, | ||
"remoteRunner": "@best/runner-webdriver", | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "firefox", | ||
}, | ||
} | ||
} | ||
} | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = { | ||
projectName: 'lwc-examples-chrome', | ||
plugins: [ | ||
'<rootDir>/custom-rollup-transformer/empty-example.js', | ||
['rollup-plugin-lwc-compiler', { | ||
rootDir: '<rootDir>/src/', | ||
mode: 'compat', // We don't really need prod here since this is for test best itself | ||
}] | ||
], | ||
benchmarkOnClient: true, | ||
"runnerConfig": [ | ||
{ | ||
"runner": "@best/runner-webdriver", | ||
"name": "default", | ||
"config": { | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "chrome", | ||
}, | ||
} | ||
} | ||
}, | ||
{ | ||
"runner": "@best/runner-remote", | ||
"name": "remote", | ||
"config": { | ||
"host": "http://localhost:5000", | ||
"options": { path: "/best" }, | ||
"remoteRunner": "@best/runner-webdriver", | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "chrome", | ||
}, | ||
} | ||
} | ||
} | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
module.exports = { | ||
projectName: 'lwc-examples-firefox', | ||
plugins: [ | ||
'<rootDir>/custom-rollup-transformer/empty-example.js', | ||
['rollup-plugin-lwc-compiler', { | ||
rootDir: '<rootDir>/src/', | ||
mode: 'compat', // We don't really need prod here since this is for test best itself | ||
}] | ||
], | ||
benchmarkOnClient: true, | ||
"runnerConfig": [ | ||
{ | ||
"runner": "@best/runner-webdriver", | ||
"name": "default", | ||
"config": { | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "firefox", | ||
}, | ||
} | ||
} | ||
}, | ||
{ | ||
"runner": "@best/runner-remote", | ||
"name": "remote", | ||
"config": { | ||
"host": "http://localhost:5000", | ||
"options": { path: "/best" }, | ||
"remoteRunner": "@best/runner-webdriver", | ||
"webdriverOptions": { | ||
"desiredCapabilities": { | ||
"browserName": "firefox", | ||
}, | ||
} | ||
} | ||
} | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
packages/best-runner-ie11/package.json → packages/best-runner-webdriver/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
{ | ||
"name": "@best/runner-ie11", | ||
"name": "@best/runner-webdriver", | ||
"version": "0.5.1", | ||
"description": "Best Runner for IE 11", | ||
"description": "Best Runner using WebDriver", | ||
"keywords": [ | ||
"Best", | ||
"Runner", | ||
"IE11", | ||
"Internet Explorer 11", | ||
"webdriver", | ||
"LWC" | ||
], | ||
"main": "build/index.js", | ||
"dependencies": { | ||
"webdriverio": "4.12.0", | ||
"@best/utils": "0.5.1" | ||
"@best/utils": "0.5.1", | ||
"deepmerge": "2.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters