-Mike
-Mike
rake jasmine:server from the root or viewing the example_suite.html file
from the examples just gives me an empty green bar with no tests.
Any help would be appreciated as I'm ready to delve into really
expanding some of my webos apps and want to get my BDD on.
-Mike
Christian Williams wrote:
> Hey Michael -- could you check the JS console (or Firebug console) for
> any errors?
>
All of this has been done on master btw.
Firebug says nothing when I load the examples/html/example_suite.html
directly in firefox.
> You could also try pulling from master and see if you get any errors
> at the top of the page about missing files. You'll need to remove
> references to jasmine.js, JSON2.js, and TrivialRunner.js from your
> Rakefile.
>
So I'm trying to run the main Rakefile with:
pivotal-jasmine$ rake jasmine_serve
and I get
(in /home/mike/workspace/pivotal-jasmine)
rake aborted!
no such file to load -- json
because I'm guessing rubygems isn't required.
Here's the changes I made to the Rakefile per what you said:
mike@mgaffney-l1:~/workspace/pivotal-jasmine$ git diff Rakefile
diff --git a/Rakefile b/Rakefile
index f6ae1cd..b31ab59 100644
--- a/Rakefile
+++ b/Rakefile
@@ -16,9 +16,9 @@ end
def start_jasmine_server(jasmine_includes)
require File.expand_path(File.join(JasmineHelper.jasmine_root,
"contrib/ruby/jasmine_spec_builder"))
- includes = jasmine_includes +
- ['/lib/json2.js',
- '/lib/TrivialReporter.js']
+# includes = jasmine_includes +
+# ['/lib/json2.js',
+# '/lib/TrivialReporter.js']
puts "your tests are here:"
puts " http://localhost:8888/run.html"
-Mike
FWIW I noticed this this morning and have a fix I'll push tonight.
Basically the new scheme (which looks like a pretty awesome refactor otherwise) does not support jasmine source files. I made that optional -- just need to run the tests and then I'll commit it. Will send a note to jasmine-js and dev when I'm done.
Christian,
There are 2 seperate issues here I think. When I load it in firebug I
don't see any errors.
I think Davis was asking me about the Rake issue, which now that I
pulled again seems to be working.
SOOOO....
It looks like when I run rake jasmine:server and hit the url, things
are working (it ran the full suite).
However, when I open firefox and browse to
examples/html/example_suite.html on the filesystem, it doesn't run any
tests.
Or am I not supposed to run the example_suite.html directly through the
browser?
-=gaffo=-