Closed harlantwood closed 9 years ago
SGTM! :+1:
I'm working on this using mocha + webdriver.io ... @travisperson you mentioned e2e testing with these two, do you have any samples you like to help me get rolling?
Nothing that I can share unfortunately. All the work I've done has been for my work.
I will give you a run down of some hints and tricks that I learned though!
webdriverio.remote
you have an object which will queue all actions. In
all their docs they chain commands, which I kind of find ugly and error
prone. You don't have to do this.protocol#keys
.
I haven't personally tested anything but in the docs it states that
modifier keys are not released so they can be integrated with mouse moment.npm install -g protractor
and you will get the webdriver-manager
CLI tool.https://angular.github.io/protractor/#/server-setup
You can of course set it up yourself as well.
If you have any questions let me know.
On Wed, Jun 10, 2015, 1:53 AM Harlan T Wood notifications@github.com wrote:
I'm working on this using mocha + webdriver.io ... @travisperson https://github.com/travisperson you mentioned e2e testing with these two, do you have any samples you like to help me get rolling?
— Reply to this email directly or view it on GitHub https://github.com/ipfs/dataviz/issues/3#issuecomment-110659724.
Thanks @travisperson, much appreciated!
Progress report: I made a simple webdriverio-mocha-example repo which tests integration of:
After some struggles, it now works both locally and on Circle: https://circleci.com/gh/harlantwood/webdriverio-mocha-example
Next step: actually testing something useful :wink:
@harlantwood that's great!
I've let go of working on this for now. Once I got deep in, it seemed like most of what I was testing was actually that the IPFS API worked as expected, which already has its own tests.
Closing for now, anyone feel free to reopen if it seems like a good pathway for further exploration.
It occurred to me today that (most of the moving parts of) the tree viz in #1 can be tested on CI pretty readily:
ipfsd-ctl
packageipfs add -r some-test-fixture-dir
load up a headless JS browser with http://www.nightmarejs.orgWhile this does not test D3 or the layout code, it would test all of our logic, and the connection to the IPFS API.