Skip to content

Commit e305c1f

Browse files
Zsolt Borbélyrtakacs
authored andcommitted
Update the README and fix some style issue (#226)
JSRemoteTest-DCO-1.0-Signed-off-by: Zsolt Borbély [email protected]
1 parent f0e40a0 commit e305c1f

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The following table shows the supported devices and applications:
99
| :---: | :---: | :---: |
1010
| STM32F4-Discovery | 🗸 | 🗸 |
1111
| Raspberry Pi 2 | 🗸 | 🗸 |
12-
| ARTIK 053 | 🗸 | 🗸 |
13-
| ARTIK 530 | | |
12+
| ARTIK 053 | 🗸 | 🗸 |
13+
| ARTIK 530 | 🗸 | |
1414
<br />
1515

1616
In the first step, all the dependencies should be installed:
@@ -141,6 +141,9 @@ $ export PYTHONPATH=/path/to/js-remote-test:$PYTHONPATH
141141
--timeout
142142
Defines a time (in seconds) when to restart the device.
143143

144+
--no-memstat
145+
Skip the memory measurements.
146+
144147
--no-build
145148
Do not build the projects.
146149

@@ -159,11 +162,20 @@ $ export PYTHONPATH=/path/to/js-remote-test:$PYTHONPATH
159162
--quiet
160163
Make the output less verbose.
161164

165+
--emulate
166+
Emulate the connection.
167+
168+
--testsuite
169+
Specify the path to user-owned tests.
170+
162171
SSH communication:
163172

164173
--username
165174
Defines the username for the Raspberry Pi target.
166175

176+
--password
177+
The password to login to the device.
178+
167179
--ip
168180
IP(v4) address of the device.
169181

@@ -180,6 +192,14 @@ Serial communication:
180192

181193
--baud
182194
Defines the baud rate (default: 115200)
195+
196+
Telnet communication:
197+
198+
--router
199+
Defines the router address.
200+
201+
--netmask
202+
Defines the netmask.
183203
```
184204

185205
### Examples to run tests

jstest/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def parse_options():
2828
'''
2929
Parse the given options.
3030
'''
31-
parser = argparse.ArgumentParser(description='[J]ava[S]cript [remote] [test]runner')
31+
parser = argparse.ArgumentParser(description='[J]ava[S]cript [remote] [test]runner',
32+
prog='jstest')
3233

3334
parser.add_argument('--app',
3435
choices=['iotjs', 'jerryscript'], default='iotjs',
@@ -196,7 +197,7 @@ def main():
196197
testresult = TestResult(user_options)
197198

198199
try:
199-
# Execute all the jobs defined in the runnalble.jobs file.
200+
# Execute all the jobs defined in the runnable.jobs file.
200201
for job_options in utils.read_json_file(paths.RUNNABLE_JOBS):
201202
env = jstest.create_testing_environment(user_options, job_options)
202203

jstest/testresult.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
import pyrebase
1717

18-
from jstest.common import paths, utils
18+
from jstest.common import console, paths, utils
1919

2020

2121
class TestResult(object):
@@ -77,6 +77,11 @@ def create_result(self):
7777
# Save the content info a result file.
7878
utils.write_json_file(filename, result)
7979

80+
console.log()
81+
console.log('The results are written into:', console.TERMINAL_BLUE)
82+
console.log(' {json_file}'.format(json_file=filename))
83+
console.log()
84+
8085
return result
8186

8287
def upload(self):

0 commit comments

Comments
 (0)