Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "qontract", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Node wrapper for qontract", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -23,3 +23,3 @@ [Qontract](https://qontract.run/) is a contract driven development tool that allows us to turn our contracts into executable specification. | ||
`"qontract-tests": "./node_modules/.bin/qontract-test --contract-dir=*.qontract"` | ||
`"qontract-tests": "./node_modules/.bin/qontract-test --contract-dir=*.qontract --host='localhost' --port='8000'"` | ||
@@ -40,7 +40,7 @@ ## API | ||
`host` hostname to be stubbed out. Used in stub mode only. | ||
`host` hostname | ||
`port` port to run the stub server. Used in stub mode only. | ||
`port` port number | ||
Check [Documentation](https://qontract.run/documentation.html) for more information. | ||
@@ -10,7 +10,9 @@ #!/usr/bin/env node | ||
const {argv} = require('yargs'); | ||
const contractPath = path.resolve(argv.contractDir); | ||
const { contractDir, host, port} = argv; | ||
const contractPath = path.resolve(contractDir); | ||
console.log('running qontract tests') | ||
execSh( | ||
`java -jar ${qontractJarPath} test ${contractPath}`, | ||
`java -jar ${qontractJarPath} test ${contractPath} --host=${host} --port=${port}`, | ||
{ }, | ||
@@ -17,0 +19,0 @@ err => { |
5729
54