Andrew Stewart
1cd5883a3f
Clean up tests
2013-11-11 11:28:37 -05:00
Andrew Stewart
88ab1a2d34
Properly organize supporting classes for tests
2013-11-11 11:09:42 -05:00
Andrew Stewart
b5a4854533
Add tests for Cylon#findRobotConnection
2013-11-08 17:33:29 -07:00
Andrew Stewart
b7add10cb4
Add tests for Cylon#findRobotDevice()
2013-11-08 17:16:17 -07:00
Andrew Stewart
b2f2d11a85
Add specs for sync and async versions of findRobot()
2013-11-08 15:04:50 -07:00
Andrew Stewart
d7b3e63afe
Test for Cylon#robots
2013-11-08 14:43:05 -07:00
Andrew Stewart
1778312e6c
Tests for Cylon#api
2013-11-08 10:29:17 -07:00
Andrew Stewart
da5cb27c21
The Future's So Bright, I Gotta Wear Shades
...
I apologize for this commit message but cylon-specs + this was just too perfect.
Anyways, have gotten Cylon robot specs working now. For some reason by the time
the spec runner gets around to running cylon.spec, inside cylon.js Robot has
been redefined to an empty object '{}'.
This resulted in a "TypeError: object is not a function on constructor" error.
So to solve this I moved the require() for 'robot' inside the Cylon.robot()
method. This shouldn't reload code thanks to Node's require cache, but will
properly assign Robot when instantiating a new one.
2013-11-08 10:03:16 -07:00
Andrew Stewart
716f675147
Remove unnecessary tests
2013-11-08 09:48:20 -07:00
Andrew Stewart
bb1388e879
Clearer and more representative testing of method proxying
2013-11-06 15:23:32 -08:00
deadprogram
bb4859d83d
Revise proxy to use objects instead of prototypes
2013-11-05 20:08:03 -08:00
Andrew Stewart
eda6f9db76
Namespace Device class
2013-11-04 12:21:28 -08:00
Andrew Stewart
ae666f67dd
Namespace Connection class
2013-11-04 12:13:40 -08:00
Andrew Stewart
9d48cba3cf
Namespace Robot class
2013-11-04 11:57:27 -08:00
deadprogram
504e51bd28
Can now attach users own functions to robot at will
2013-10-28 23:53:30 -07:00
Andrew Stewart
5da9ac3216
Fix test fails
2013-10-28 17:56:00 -07:00
Andrew Stewart
c33a99e4bd
Add tests for proxyFunctionsToObject
2013-10-28 12:07:56 -07:00
Andrew Stewart
c5cf70a5af
Remove irrelevant tests
2013-10-28 11:58:31 -07:00
deadprogram
79f02193ca
All green
2013-10-25 23:29:07 -07:00
deadprogram
e43bf8ad45
Works for arduino blink, with new async hotness
2013-10-25 23:27:39 -07:00
Edgar O Silva
838aa9065a
Added colors to example.
2013-10-24 16:27:37 -05:00
deadprogram
10bccd896d
A bit more cleanup of self
2013-10-24 00:50:53 -07:00
deadprogram
a6d29ecbdd
Can proxy commands from connection to associated adaptor
2013-10-23 23:18:19 -07:00
deadprogram
b8371232d1
Proxy commands into device from associated driver
2013-10-23 23:02:54 -07:00
Andrew Stewart
4a57300d32
Fix test fails
2013-10-23 14:01:48 -07:00
Andrew Stewart
ecdc417a58
Revise Logger to accept multiple arguments
2013-10-23 12:23:10 -07:00
Andrew Stewart
9452739244
Add addProxy() method to Adaptor class
2013-10-23 12:18:20 -07:00
deadprogram
1209686388
Making test pending, for now
2013-10-23 11:53:58 -07:00
Andrew Stewart
dbe4ccbbd5
Fix connection test failure
2013-10-23 11:47:00 -07:00
deadprogram
8252d38a5e
WIP on dynamic loading of adaptor and driver modules
2013-10-23 08:38:00 -07:00
deadprogram
132282d4c2
Much along the way to adaptor/driver registration and loading
2013-10-22 23:23:52 -07:00
deadprogram
42cd14cf14
A little test output reformat
2013-10-22 22:21:37 -07:00
deadprogram
8b390cc486
Resolve merge conflicts with master
2013-10-22 22:13:36 -07:00
deadprogram
ca59493a12
Proper initialization of device
2013-10-22 22:06:49 -07:00
Andrew Stewart
da95bccdfa
Add global Logger object
2013-10-22 21:46:02 -07:00
deadprogram
c25324c225
Specify more pending tests for Device
2013-10-22 20:56:23 -07:00
deadprogram
48db540d37
Connections and Devices should belong to a robot
2013-10-22 16:39:49 -07:00
deadprogram
af4636598a
WIP on device
2013-10-22 13:13:55 -07:00
Andrew Stewart
ea90ed8889
Add utility functions and monkey-patches
2013-10-22 11:59:53 -07:00
Andrew Stewart
9e7614a4a1
Add Port class functionality and tests from Artoo
2013-10-21 22:13:25 -07:00
deadprogram
008f35ccbc
Add some pending tests
2013-10-20 23:24:38 -07:00
deadprogram
2f6ee5866d
Add port, and some test output cleanup
2013-10-20 22:30:01 -07:00
deadprogram
defa1cc91d
Need to be able to start
2013-10-20 14:47:40 -07:00
deadprogram
2019cd5b6c
All robots have a name
2013-10-20 13:29:41 -07:00
deadprogram
d7cc0c3730
WIP on init/start connections and devices
2013-10-19 22:25:31 -07:00
deadprogram
17be53408a
Remove anything not needed for test
2013-10-19 20:32:04 -07:00
deadprogram
c9953b8830
Work and create new robot
2013-10-19 20:31:29 -07:00
deadprogram
b0f4d9f12b
Name is just an option
2013-10-19 18:32:59 -07:00
deadprogram
13f3b6b1a8
Placeholders for core classes
2013-10-19 16:10:24 -07:00
deadprogram
e4540ead46
Remove commented lines
2013-10-19 14:36:40 -07:00