Evergreen working with capybara-webkit

48 views
Skip to first unread message

Abe

unread,
Mar 5, 2012, 12:35:12 PM3/5/12
to Evergreen
Hi All,

I'm trying to get evergreen to run my unit tests using capybara-webkit
as opposed to a browser. But I get the following error:


Expected HTMLNode to be defined.
in :

Can anybody help be debugging this? Also, the rake spec:javascripts
returns:


rake aborted!
Don't know how to build task 'spec:javascripts'

(See full trace by running task with --trace)


If I run the 'evergreen serve' and Run all the tests they pass fine.
It seems the capybara-webkit isn't successfully parsing the script

Any help would be appreciated.

Abe

unread,
Mar 7, 2012, 9:36:42 AM3/7/12
to Evergreen
Made some progress here, I'm now getting the rake task to run, cycling
through the tests, but they all fail. Debugging shows the following
results for jasmine tests:

describe("Ci implementation",function(){
it("should return true", function(){
expect(1===1).toBeTruthy(); //fails
});
it("should return false",function(){
expect(1===1).toBeFalsy(); //passes
});
it("should return false",function(){
expect(1===2).toBeFalsy(); //passes
});
});

I tried different matchers and they all have similiar behaviour, i.e.
expect(1).toBeDefined(); fails, yet toBeNull passes.

Abe

unread,
Mar 7, 2012, 9:39:02 AM3/7/12
to Evergreen
Also tried using capybara-phantomjs and capybara-zombie, but when
switching to these drivers, they don't find any tests to run?

Abe

unread,
Jun 20, 2012, 5:39:01 AM6/20/12
to ruby-ev...@googlegroups.com
Ok, it seems to be related to the fact I'm running these tests in a VM and installing capybara without webgl... 
Reply all
Reply to author
Forward
0 new messages