Home / Companies / Semaphore / Blog / Post Details
Content Deep Dive

Exploring CasperJS and Continuous Integration

Blog post from Semaphore

Post Details
Company
Date Published
Author
Nebojša Stričević
Word Count
365
Language
English
Hacker News Points
-
Summary

CasperJS, a JavaScript navigation scripting and testing utility for PhantomJS, offers an intriguing option for testing Rails applications, although it might not be the best fit for this purpose on platforms like Semaphore. The text explores how to set up and run a simple CasperJS test in a Rails environment on Semaphore, highlighting the steps involved, such as preparing the Rails application, installing CasperJS, loading test data, and running tests. While the test results appear successful, the lack of isolation and persistent state across the test suite are potential drawbacks. Despite this, CasperJS could be a useful tool for live app smoke testing, especially for those more familiar with JavaScript than Ruby. The text concludes by encouraging readers to share their experiences with unconventional tools in their projects and invites further discussion on Discord.