Provide simple HTTPS server to server Zowe Desktop Explorer plugins.
npm start
Then visit https://localhost:8080 to access the test server. The default config file is configs/config-default.json.
$ node src/index.js -h
Usage: explorer-ui-server [options]
Options:
--version Show version number [boolean]
-s, --service service-for path [default: ""]
-b, --path base path uri
-d, --dir base dir [required] [default: "../app"]
-p, --port listening port
-k, --key server key [default: ""]
-c, --cert server cert [default: ""]
-x, --pfx server pfx [default: ""]
-w, --pass server pfx passphrase [default: ""]
-f, --csp csp whitelist ancestors frames [required]
-v, --verbose show request logs [boolean] [default: false]
-h, --help Show help [boolean]
npm test
Test reports are saved in reports folder, including JUnit result, Mochawesome report, Istanbul Coverage report, Cobertura report etc.
Install SonarQube Scanner.
If you are using Mac, try install with HomeBrew sonar-scanner formula, then update the configuration of SonarQube server at /usr/local/Cellar/sonar-scanner/<version>/libexec/conf/sonar-scanner.properties.
Example scanner configurations:
sonar.host.url=https://jayne.zowe.org:9000
sonar.login=<hash>
Then you can run sonar-scanner to start code analysis.
Build pipeline has embedded the SonarQube code analysis stage.