What does a standard jasmine directory tree look like?

I read a tutorial about testing Jasmine, and he suggested that you use the standard Jasmine directory tree structure (which seems to be related to the tree structure of the RSpec directory). I have googled for an hour and cannot find any information about this standard directory tree.

What does the standard Jasmine test environment directory tree look like, given a very complete scenario (using HTML fixtures, JSON fixtures, specifications, etc.)?

Thanks in advance for your help!

+6
source share
2 answers

It is true that there is no standard, but there seem to be some suggested ways to organize the structure of the project directory tree.

After working last week on some projects with ruby โ€‹โ€‹and jasmine, it seems to me that the proposed structure:

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 would be highly appreciated!

+2
source

Itโ€™s good that there is no real standard, but I can tell you how I do

 Scripts app test.js spec test-spec.js testrunner SpecRunner.html 

or you can do as you wish. It is completely up to you.

0
source

Source: https://habr.com/ru/post/951917/


All Articles