Coder Social home page Coder Social logo

Comments (4)

searls avatar searls commented on June 26, 2024

A custom runner is probably the simplest solution in this case. Sorry :/

from jasmine-maven-plugin.

dehru avatar dehru commented on June 26, 2024

Searls,
I thought I'd post this simple solution in case anyone runs into the same issue.

This is what I ended up adding to my custom runner. Works like a charm...even if a little hardcoded.

<script type="text/javascript">

        var appDirectory = "src/"; //this works for jasmine:test
        if (document.location.port == 8234) { //key off the port used for bdd
            appDirectory = "src/main/webapp/";//this works for jasmine:bdd
        }

    </script>

then i use document.write to append the appDirectory to the script tag src property.
Cheers!

from jasmine-maven-plugin.

p33t avatar p33t commented on June 26, 2024

I really wish I knew what
"then i use document.write to append the appDirectory to the script tag src property."
meant.

from jasmine-maven-plugin.

p33t avatar p33t commented on June 26, 2024

So I finally got my ExtJS 4, Jasmine, Maven learning project going. Its available to the public for what it's worth...
http://subversion.assembla.com/svn/freshcode_public/learn/extjs/
(The READ_ME.txt is really important)

Particular caveats include:

  • An incompatibility between ExtJS 4.0.7 and HtmlUnit
  • A custom SpecRunner.htmltemplate that does an 'Ext.onReady()' and works around the bug described in this thread
  • Maven plugin is only at Jasmine 1.0.2 (not 1.1.0)

from jasmine-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.