HTML and CSS Reference
In-Depth Information
Verify that the symbolic link has been created by running the command ls , as
shown in Figure 9-27.
Figure 9-27. The new public_html symbolic link
Now, navigate to your unit test on the remote server using the following URL,
replacing yourdomain with your own domain, of course:
http:// yourdomain /js/tests/calculator.html .
As you can see, Capistrano can be a powerful tool. Not only can it be used to
make deployments, but it can also be used to run commands on remote servers
without having to log directly into them. This can be useful for recompiling SASS
files or concatenating and minifying JavaScript files. What's even better about
Capistrano, is that because it is run from the command line, it can be integrated
into continuous integration servers such as Hudson or Bamboo.
Summary
From this chapter, you should have a basic understanding about continuous
integration and how it affects how you test and deploy your application.
Although this topic does not cover how to implement a continuous integration
server, it's a subject worth pursuing, even as a lone developer. When you have
last-minute code changes, you can be confident that when you check in your
code, once it reaches the production environment, it has been fully tested. You
can also be confident in the fact that, due to the automation, if it successfully
deployed the first time, it should deploy successfully again, and again, and again
unless you have broken some element of your application. In such a case, your
failed test will point out which piece of code does not work as expected.
Through this chapter alone, you should have a real foothold into how to create
JavaScript unit tests using QUnit. There are other, more advanced testing
products out there, such as Test Swarm
( https://github.com/jquery/testswarm ), Ja smine
 
Search WWH ::




Custom Search