Comments (12)
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.
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.
This would be nice to have.
from grunt-contrib-jasmine.
This has actually been fixed in new version ;)
from grunt-contrib-jasmine.
@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.
@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.
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/, but
grunt-contrib-jasmineand
grunt-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 I don't use it anymore.
Do you mind if I ask what you are using?
from grunt-contrib-jasmine.
@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.
+1
from grunt-contrib-jasmine.
@geekytime it doesn't look like .grunt gets put in the same place as the generated _SpecRunner.html.
from grunt-contrib-jasmine.
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)
- Allow messages to be sent from templates HOT 1
- Can't find jasmine HOT 3
- no-sandbox HOT 2
- Can't pass viewport size to Puppeteer HOT 1
- security vulnerability detected (caused by lodash) HOT 4
- Dependencies of the NPM packages not up to date HOT 7
- Display console output HOT 1
- 2.0.3 does not work on CircleCI HOT 3
- npm install is broken for versions less than 2.0.0 HOT 3
- Configure the jasmine's random on gruntfile HOT 2
- Need to pass '--allow-file-access-from-files' down to puppeteer launch args. HOT 2
- subsequent tasks in multi task don't run their specs HOT 8
- reporter.js assumes it is running headless HOT 1
- refactor puppeteer option passing
- Renable ESLint rules
- New rimraf version causing issue. HOT 1
- Does not work with jasmine 3.9.0 (latest), tests don't execute and command hangs on "Testing specs with Jasmine/latest via HeadlessChrome/90.0.4427.0" HOT 1
- Fails on linux as the grunt-contrib-jasmine/.jasmine/latest/images/jasmine_favicon.png is missing HOT 1
- Jasmine 3.10.0 HOT 1
- Puppeteer installed with grunt-contrib-jasmine timing out when running jasmine tests HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-contrib-jasmine.