When working in a large code base like Quantum GIS or when dealing with a lot of repositories in the machine, it is always tedious to cd all the way to the folder we require to move to. Enter apparix, an excellent linux tool I found by googling “bookmarking in the terminal”. This blog post has the complete details of how to use it.
Yay, no longer cd goto/project/src/core/of/module1 and again cd ../../../test/number/three. I can simply do
$ bm projectsrc
$ bm test3
$ bm fancypants4
to bookmark my locations and simply
$ to projectsrc
$ to test3
$ to fancypants4
One more tool added in the arsenal to improve productivity.
The best way to learn how to use the Tester API and see it in action is probably to have a look at CasperJS’ own test suites.
Thanks for this quote, I found that using the
fs module one can load local filesystem files as modules to be used. Using that now I could write unit tests while developing the library and later on write functional tests while using the library.
Here is the file structure
And here is are the two tests – i) uses a webpage based approach; ii) uses module approach