-
11 Dec 2010 9:50 AM #1
ExtJS Jasmine unit test reporter?
ExtJS Jasmine unit test reporter?
Just wondering if anyone has or is working on a jasmine reporter implemented in ExtJS?
I would imagine it would be similar to: http://www.sencha.com/forum/showthre...implementation. That uses YUI testing framework though.
-
11 Dec 2010 5:58 PM #2Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Nothing internally, though we use Jasmine for all of our unit testing. We use a (slightly) customized version of the normal reporter, which is more than adequate for us at the moment.
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
8 Dec 2011 3:27 PM #3
Hi Scott,
maybe this will help you.
I have build a jasmine reporter to include unit tests into applications as a Panel (Arapi.unittest.JasminePanel).
The result output of unit tests will be shown as an Ext JS Tree Panel.PHP Code:// Be sure that jasmine.js (http://pivotal.github.com/jasmine)
// is included in your application
var uTestPanel = Ext.create("Arapi.unittest.JasminePanel", {
jasmineCfg: {
fn: function (){
var me = this;
describe("Suite 1", function(){
it("that's ok", function(){
expect(1 == 1).toBeTruthy();
});
it("that's not ok", function(){
expect(1 != 1).toBeTruthy();
});
});
},
scope: this
}
});
// myContainer.add(uTestPanel);
// Run test with output into tree of jasmine panel
uTestPanel.run();
Here is an example.
The API documentation you can find here.
Download Arapi.unittest.JasminePanel hereExt JS 4 Advanced Application Architecture => see Arapi.app.Application and Arapi.app.Controller
(Extendable Controllers, Neutral Getters and Extended REFS for complex Ext JS Applications)
Tutorial Ext JS 4 Advanced Application Architecture => see http://alexisdorn.de/arapi-ext/index.php (german)
Ext JS 4 Unit Test => see Arapi.unittest.JasminePanel
Arapi Ext Extensions Arapi Ext (german)
My Website => Alexis Dorn
-
9 Dec 2011 8:43 AM #4Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
Scott, interested in trying out our Siesta tool? Info on our site

-
9 Dec 2011 12:53 PM #5
Thanks alexis. I did check it out but the API docs didn't load for me. The trick of course is mankz's Siesta tool looks super, so I'll go with that!
Similar Threads
-
ExtJS Unit Testing Experiment
By arthurakay in forum Community DiscussionReplies: 32Last Post: 24 Feb 2012, 7:04 AM -
Extjs 3.2.X Unit Testing and Ext.test.session implementation
By yhwh in forum Community DiscussionReplies: 43Last Post: 30 Aug 2010, 4:37 AM -
Howto unit test widgets?
By KaiWeing in forum Ext GWT: DiscussionReplies: 2Last Post: 9 Aug 2010, 8:33 AM -
JS Unit Test Panel
By Ronaldo in forum Ext 2.x: User Extensions and PluginsReplies: 9Last Post: 20 Feb 2009, 9:32 AM -
How to unit test Ext.Ajax (no server required)
By danh2000 in forum Community DiscussionReplies: 0Last Post: 8 Nov 2007, 2:38 AM


Reply With Quote