Giter VIP home page Giter VIP logo

Comments (12)

jsoverson avatar jsoverson commented on August 15, 2024

I haven't actually used live-reload. Does it serve with the live-reload folder as its root? The Specrunner should be able to be put anywhere as long as it has access to .grunt in the root.

I could make the tmpdir configurable if necessary.

from grunt-contrib-jasmine.

SimplGy avatar SimplGy commented on August 15, 2024

Yeoman sets live-reload to serve out of .tmp by default. We changed it to .devServer. It won't work served out of root I think--too many source files at play.

It's important to have specrunner in a specific location.

Having the spec runner as a sibling of the index.html allows the requirejs path configuration to stay the same. Ideally, require config is the same between dev, test, and dist--this way there's limited chance of introducing bugs as a result of differences, and there's less config to maintain.

A configuration that allows specRunner to live in any location (with working paths) would be ideal.

from grunt-contrib-jasmine.

omireault avatar omireault commented on August 15, 2024

This would be nice to have.

from grunt-contrib-jasmine.

inossidabile avatar inossidabile commented on August 15, 2024

This has actually been fixed in new version ;)

from grunt-contrib-jasmine.

geekytime avatar geekytime commented on August 15, 2024

@inossidabile, I'm having a similar issue. Which version allows the SpecRunner to sit in any location? Does that mean it also allows the temp (.grunt) folder to sit elsewhere, such as the server's static folder?

from grunt-contrib-jasmine.

inossidabile avatar inossidabile commented on August 15, 2024

@geekytime I don't use it anymore. But I'm quite sure the latest one should work. Try master as well.

from grunt-contrib-jasmine.

geekytime avatar geekytime commented on August 15, 2024

The url problems can run pretty deep for someone trying to use an existing server configuration. In our case, our server expects static content to be served from /static/, butgrunt-contrib-jasmineandgrunt-template-jasmine-requirejs` both do a lot of path-correction relative to the project root, or relative to the outfile in terms of it's position relative to the project root.

I can use whatever path-corrections I want for the files by implementing my own template, but I'd still need a way to tell it how to load my _SpecRunner.html from a path that isn't relative to the project root at browser-time.

from grunt-contrib-jasmine.

geekytime avatar geekytime commented on August 15, 2024

@geekytime I don't use it anymore.

Do you mind if I ask what you are using? 😁

from grunt-contrib-jasmine.

inossidabile avatar inossidabile commented on August 15, 2024

@geekytime I made a step away to more generic solutions like Karma. To be explicit I use testem and corresponding Grunt plugin

from grunt-contrib-jasmine.

Paul-E avatar Paul-E commented on August 15, 2024

+1

from grunt-contrib-jasmine.

cheshire137 avatar cheshire137 commented on August 15, 2024

@geekytime it doesn't look like .grunt gets put in the same place as the generated _SpecRunner.html.

from grunt-contrib-jasmine.

matatk avatar matatk commented on August 15, 2024

This issue seems quite similar to #170, in which I asked if it might be possible to choose where to put the contents of the current .grunt/ directory (I've got the SpecRunner in test/, which is hosted via GitHub Pages, and it'd be great -- much neater -- to be able to put Jasmine's code in test/ as well).

from grunt-contrib-jasmine.

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.