Add VSCode launch configurations (#10683)

* Added debug, attach to debug, test-all, and test-current-file
* The debug and attach to debug allow you to run Appium server
* Made some changes to how package.json is located to support being able to run Mocha tests directly from 'test/' instead of from 'build/test/'
This commit is contained in:
Dan Graham
2018-05-15 11:35:46 -07:00
committed by GitHub
parent 812a6bf4f3
commit 001e2f3674
7 changed files with 71 additions and 11 deletions
+4 -2
View File
@@ -1,7 +1,7 @@
import _ from 'lodash';
import logger from './logger';
import { processCapabilities, BaseDriver } from 'appium-base-driver';
import findRoot from 'find-root';
function inspectObject (args) {
function getValueArray (obj, indent = ' ') {
@@ -149,4 +149,6 @@ function insertAppiumPrefixes (caps) {
return prefixedCaps;
}
export { inspectObject, parseCapsForInnerDriver, insertAppiumPrefixes };
const rootDir = findRoot(__dirname);
export { inspectObject, parseCapsForInnerDriver, insertAppiumPrefixes, rootDir };