-
Notifications
You must be signed in to change notification settings - Fork 44
Enable iotivity-node tests on device #36
Comments
@gabrielschulhof thank you for the reminding and updating of this issue. Add more background and opens here. I thought it would be valuable and beneficial to run tests from engineering team on real devices. For you, it can help to identify issues of implementation and/or tests within real environment; for me (QA), it helps to enable us to try and verify new implementation (features) quickly. Right? Going forward, QA can make contributions to these tests, either fixing issues or adding new tests, based on our testing methodology. Thus you can help review and run the tests in your development environment. Acceptable? Suppose you are going to use the same test framework as this when you are implementing Soletta C APIs bindings for Node.js; we can co-work the tests if it is acceptable. Make sense? |
You also need to copy the file |
2 more opens:
Thanks. |
Seems there is no |
@zqzhang the link you gave does not refer to the iotivity-node test suite, but rather to the test suite for a library called |
|
@gabrielschulhof seems the |
By the way, seems only https://github.com/otcshare/iotivity-node/blob/master/tests/tests/Load%20Library.js#L2 references the |
Thanks, follow the comment update the test steps and rerun the tests:
|
@zqzhang ( echo -n '"';
ls tests/tests/ | grep -v 'Load Library' | awk '
BEGIN {file="";}
{if (file == "") file=$0; else { printf(file ","); file=$0;}}
END { printf file;}
';
echo -n '"' ) | xargs node tests/suite |
Shorter version: ls tests/tests/ | grep -v 'Load Library' | awk '
BEGIN {file="";}
{if (file == "") file=$0; else { printf(file ","); file=$0;}}
END { printf file;}
' | xargs -d '\n' | node tests/suite |
Shorter still: ls tests/tests | grep -v 'Load Library' | tr '\n' ',' | sed 's/,$//' | xargs -d '\n' node tests/suite |
Thanks for response, I will take it. |
Using grunt to run the test of this repo on device
grunt
can run normally on test device:Failed to run command
grunt
because of lack of modulesgrunt-cli
under the directoryiotivity-node/node_modules
, so I copy the modulegrunt-cli
from desktop to test device:The command
grunt
can run normally2. Copy all relevant files with test to device
Only show the part of output error message:
The text was updated successfully, but these errors were encountered: