Submitted by ygerasimov on Fri, 07/08/2016 - 07:45
When you set up your Continuous Integration you really would like to set your deployments automatically. If you use Acquia hosting for your website it does make a lot of sense to use all environments in your workflow. But how you can automate deployments to these environments without touching UI (copying database, files, deploying code)?
You can call them either with drush command or curl request. We will touch the drush commands approach in this post.
Submitted by ygerasimov on Wed, 04/20/2016 - 09:18
Visual testing is a great technique to keep styles of your website under control. But what other things visual testing can catch? Maybe some problems with functionality?
It is always best to see visual testing on real life projects. In this article we have done testing of Drupal.org website by comparing it with its staging environment and found some interesting issues.
Please leave your comments on BackTrac's blog instead of here. Thanks!
Submitted by ygerasimov on Tue, 01/19/2016 - 11:36
Testing stale designs
Usually visual testing is very effective when website has stable design that should not be broken.
There are projects the whole idea of those is to keep design the same but to migrate the content to new platform. This is where visual regression testing can help a lot to identify very fast what pages are not yet complete and which ones are 100% accurate and can be shown to client.
Submitted by ygerasimov on Fri, 12/11/2015 - 08:03
The Idea of visual testing of your website has been around for a while. This can range from someone manually checking a web page or more for visual defects or automating the process of detecting visual changes. The cause for unwanted visual changes usually comes from CSS stylesheet changes.
For developers, it is important to understand how to incorporate the visual testing into your existing workflow. As usual there are multiple options out there and we will be listing them below. from the easiest to the most complex.
Submitted by ygerasimov on Mon, 01/12/2015 - 14:51
Logstash is a great tool to centralize logs in your environment. For example we have several drupal webheads that write logs into syslog. It would be really nice to see those logs somewhere centrally to find out about your system's health status and debug potential problems.
In this article I would like to show how easy to start using logstash for local development.
Submitted by ygerasimov on Thu, 01/08/2015 - 10:19
In this article we will show small code snippet that helps you to control very granular how to render submit buttons on your forms.
Submitted by ygerasimov on Tue, 12/23/2014 - 13:38
Behat is great testing tool that there are already has a lot of documentation.
In drupal we have extension that helps us to build tests. Behat tests are configurable in yaml file (like url of your website and other options). Lately I needed to set custom cUrl options (goutte driver) and because Drupal extension 3 uses Guzzle 4 library it was not that obvious how to do that.
Submitted by ygerasimov on Mon, 12/22/2014 - 13:05
Panels standard renderer has very flexible undocumented feature of controlling the sequence of panels being rendered.
By default you have possibility to use 'render first' and 'render last' in your content type definition so you already can control what pane should be rendered for example last. Undocumented part is more interesting that is hook_panels_panes_prepared_alter() that runs after all panes were set up. So you can alter the array of panes in which way you can control sequence of panes being rendered. This feature is super handy when you have dependent panes.
Submitted by ygerasimov on Thu, 12/26/2013 - 10:54
Current project I am working on has user profiles using profile2 module. So it is pretty common task to replace all links/references on the site with user's proper name from Profile instead of his drupal username.
This is really easy to achieve using hook_username_alter()
Submitted by ygerasimov on Tue, 02/26/2013 - 23:12