Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How would a jasmine standard directory tree look like?

Tags:

jasmine

I was reading a tutorial about Jasmine testing and it suggested you should use the standard Jasmine directory tree structure (which seems to be related with RSpec directory tree structure). I have googled for an hour and can't find any info about this standard directory tree.

How would a standard Jasmine testing environment directory tree look like, considering a very complete scenario (with HTML fixtures, JSON fixtures, specs, etc)?

Thanks in advance for any help!

like image 323
Tomás Girardi Julio Avatar asked Aug 17 '13 00:08

Tomás Girardi Julio


1 Answers

It's true that there is no standard, but there seems to be some suggested ways of organising your project directory tree structure.

After working these last week on some ruby and jasmine projects it seems to me that the suggested structure is:

test
    SpecRunner.html

    jasmine
        lib
            <jasmine.js and other files>

    spec
        javascripts
            my-spec.js

            fixtures
                my-fixture.html

            helpers
                my-helper.js

            support
                yasmine.yml
                yasmine_helper.rb

Any feedback will be much appreciated!

like image 199
Tomás Girardi Julio Avatar answered Jan 04 '23 12:01

Tomás Girardi Julio