Separating Jasmine Suites within one Rails Project

20 views
Skip to first unread message

Ryan Ausanka-Crues

unread,
May 13, 2011, 7:11:35 PM5/13/11
to Jasmine
Here's my problem:
We have a Rails app with a mobile component. We're using Sencha ExtJS
for the regular app and SenchaTouch for the mobile app. We have
Jasmine tests for both apps but when we run the tests, SenchaTouch's
Ext namespace conflicts with the ExtJS Ext namespace. As such we'd
like to separate the tests.

I was thinking the easiest way to do this is to create separate rake
tasks (something like 'rake jasmine:mobile' and rake 'jasmine:web')
and load a custom jasmine_config.rb file in the mobile task and have
it point to a separate directory to find the mobile jasmine tests.
Unfortunately, I'm having a difficult time finding exactly what I need
to override. Any suggestions?

Davis Frank

unread,
May 13, 2011, 10:18:05 PM5/13/11
to jasmi...@googlegroups.com
We do have some thoughts/plans on how to make this better.

But for the moment, you'd need each rake task to instantiate it's own Config class and execute it.  The Config class is responsible for globbing the files via the YAML.

Assuming two YAML files, I think you'd just have to override where the YAML file is read. The rest of the code should flow from there.

--dwf


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.


Reply all
Reply to author
Forward
0 new messages