We recently released a new version of Chimp that has deeper integration with Meteor to allow you to do next-generation testing. Here are some highlights:
If you change your application files, Chimp will detect the hot-code deployment and reruns in an instant. As soon as you save changes to a spec, Chimp runs in an instant. You can also add adhoc directories to watch. All of this is happening without Velocity.
No callback hells or promise headaches, we took the original WebdriverIO and made it synchronous! So you can write easy-to-read tests. We also wrapped the node DDP library and made that synchronous. This means you can do a server call, then a client call, then a server call then an assertion from an opto-decoupled test.
Contextual Objects In Your Specs
Within the context of your steps, you get a
client object. This is a pre-configured WebdriverIO instance that you can use to control the front-end using ANY browser and you get a
server object is a pre-connected DDP instance. This allows you to test Meteor methods and publications or to use data fixtures. You also get a
request object that allows you to test REST api’s or to use data fixtures over HTTP
Remote Code Execution
WebdriverIO already comes with a method called
client.execute, which runs code on the client. We added a
server.execute method that does exactly the same thing as the client. This means you can employ some seriously advanced test-driving techniques, like Modeling by Example for instance.
Use Mocha Or Cucumber (Jasmine soon)
Choose the testing framework what you’re most comfortable with and enjoy the same benefits listed above in all of them.
GitHub repo is here, give us a star if you like it!