wraith-wireless / PyRIC

Python wireless library for Linux
http://wraith-wireless.github.io/PyRIC
Other
93 stars 51 forks source link

Add unittest for each module #9

Closed ghost closed 8 years ago

ghost commented 8 years ago

We should add some unittest for each module so testing becomes easier and more efficient.

wraith-wireless commented 8 years ago

Sounds good, I'm looking into PyUnit to start something up - you interested in helping? Know your busy on Wifiphhisher

ghost commented 8 years ago

I'm not really familiar with the project but I will take a look at it and let you know.

wraith-wireless commented 8 years ago

PyUnit seems too much. I'm just going to write a script that tests each pyw function and then run a set of legit, invalid devices and values for it

ghost commented 8 years ago

It shouldn't be that hard when using unittest and mock modules. You can take a look at one of the wifiphisher unnitests which implements it here. I can help you as well. :smile:

wraith-wireless commented 8 years ago

unittest complete, placed it in PyRIC root directory under tests directory - 61 tests ran successfully. I'm going to add the port of iw dev link to pyw and add unittest for that prior to going to alpha. If possible, would you mind running unittest on your system. Would like to ensure kernel 4 has no issues and I'm still working on getting a testing system up and running.

wraith-wireless commented 8 years ago

@blackHatMonkey - I'm working on restructuring the whole package, you may want to hold off as the hierarchy is going to be redone.