You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: we've recently been considering the idea of using node.js for testing the remote protocol which should be able to share a lot of code with the web ui. It would probably be best to investigate simpler node.js based unit tests before looking into Selenium which would be more for testing the web ui itself.
I don't have any experience with Selenium so far, but it looks like a sensible starting point for being able to create unit tests for the web UI and - perhaps more importantly while there's barely much of a web UI too test yet - for the remote protocols.
I'd imagine we could have a test-ui.html + gputop-test.js that gets installed as an alternative to index.html + gputop-ui.js which wouldn't need to visualize anything but would exercise the protocols (JSON RPC + protocol buffers) involved in communicating between a device and web worker as well as between the front-end JS and web worker.
The code in gputop-ui.js can be referenced to see how the test should be able to interact with a device.
Note: It would probably be best to tackle this after gputop can generate fake, deterministic metrics as described in issue #15
This issue is about establishing the first unit test for the remote metrics protocols. A first test might open up a basic system wide metrics query and capture an overview of the metrics over one second and check that the received data is as expected.
The Travis Continuous Integration configuration (.travis.yml) should be updated to be able to run this first unit test routinely.
The text was updated successfully, but these errors were encountered:
Note: we've recently been considering the idea of using node.js for testing the remote protocol which should be able to share a lot of code with the web ui. It would probably be best to investigate simpler node.js based unit tests before looking into Selenium which would be more for testing the web ui itself.
I don't have any experience with Selenium so far, but it looks like a sensible starting point for being able to create unit tests for the web UI and - perhaps more importantly while there's barely much of a web UI too test yet - for the remote protocols.
I'd imagine we could have a test-ui.html + gputop-test.js that gets installed as an alternative to index.html + gputop-ui.js which wouldn't need to visualize anything but would exercise the protocols (JSON RPC + protocol buffers) involved in communicating between a device and web worker as well as between the front-end JS and web worker.
The code in gputop-ui.js can be referenced to see how the test should be able to interact with a device.
Note: It would probably be best to tackle this after gputop can generate fake, deterministic metrics as described in issue #15
This issue is about establishing the first unit test for the remote metrics protocols. A first test might open up a basic system wide metrics query and capture an overview of the metrics over one second and check that the received data is as expected.
The Travis Continuous Integration configuration (.travis.yml) should be updated to be able to run this first unit test routinely.
The text was updated successfully, but these errors were encountered: