Showing posts with label velocity. Show all posts
Showing posts with label velocity. Show all posts

Tuesday, 9 December 2014

reading about testing and then remembering that this is fun...

As expected I got a bit of a chance to play with the app this evening.

I started looking at the velocity test framework that I was talking about previously.  I found a couple of very interesting articles and managed to get the cucumber example running.  You do this by running test.sh in the higher directory I suspect that this is to do with which of the test tools require a mirror to work and which don't.
These are the links that I found most useful and intend to return to at least once:
Youtube video about velocity

Velocity and Jasmine really (really) thorough blog post

Then I continued with the app...
I added a login function (though I'm not yet actually using it for anything and it has an annoying extra button that I need to figure out how to remove).
I've also added a total time and a button that uses some of the router magic to work with links.

Finally I played with DNS and now the url lunch.ben.best points to the current deployed version of the app.  That's a really nice (and really simple) option from meteor, they're still hosting it, it's all done with cname magic.

Of course once I deployed the app I messed up the data, so that I know where to come back to to reset the data the details of how are in this stack overflow answer.

I've got a day long usability course at work tomorrow, so that should be interesting.  I may well decide that it's time to re-visit the wireframes or perhaps start from scratch.

I'm really pleased with where I am so far and will continue to get there, here's an image of where we are so far:

Note the url

Monday, 1 December 2014

playing with velocity

It's pretty, that's not something I had thought I'd say about a testing framework. Velocity is really pretty. It also works with a load of test frameworks and reporters.  I had some problems downloading the examples (that wasn't their fault, I'd messed up my git install somehow), but when I did there were examples for jasmine, nightwatch, cucumber and mocha. I really wanted to get cucumber working as there are several of my colleagues who are big fans of it, unfortunately only the nightwatch and mocha examples seemed to work.  I'll play a bit more with them, but this looks promising.
Velocity looks really nice and I'm looking forward to playing properly with it.
See it's pretty

unit tests because "later equals never"

Having re-read my previous post and having come across Robert Greiner's quote "Later equals never" again I decided to stop and figure out how the unit testing worked within meteor.  This led to me finding Velocity which looks really interesting. Unfortunately my laptop decided that I wasn't able to use git any more.  I've now fixed this but it means I've only now been able to get the example application downloaded.  I've read the details on their website and think that this should be feasible, but it'll be tomorrow now before I get to play with it properly.

I'll also probably be revisiting the code that I'm not happy with before I continue moving on, I say probably as I'm still not certain of the right way of doing this.  Hopefully all will become clear as I read more of the meteor book.  The next chapter is on adding users which should be interesting.  I tried to do this myself previously with meteor and really messed it up, so it'll be nice reading how it's supposed to be done.