Comments (5)
This is due to two things, a missing slash at the end of the host
option so the url generated is malformed and the connect task in npm not seeming to respect custom port config. The npm version isn't up to date with the repo so this is likely fixed.
In order to get you further, change your host line to
host: 'http://127.0.0.1:<%= connect.port %>/',
And set the port to 8000 in connect until that gets updated.
I'll add some protection against malformed urls, thanks for the heads up.
from grunt-contrib-jasmine.
I was actually already running the current head of grunt-contrib-connect. Adding the trailing slash does appear to have changed something, but it hasn't fixed it. Previously, the task would fail with the timeout error. Now it just hangs indefinitely.
from grunt-contrib-jasmine.
Can you run your tests via grunt connect jasmine -vd
and post your output? (substitute your multitask directives if necessary)
I am trying to replicate your issue and I can't with the gist you provided, the trailing slash added, and grunt-contrib-connect running from head (with custom ports supported).
from grunt-contrib-jasmine.
D....oh.
So there were, by my count, 4 errors with what I was trying to do. Youch. There were the two you pointed out. Then
- I was trying to run the jasmine task without also running connect.
- I was trying to set the connect port inside the options hash instead of at the root of the task settings. Running in verbose tipped me off to that.
Thanks so much for your help! Sorry to waste your time - especially on a weekend.
from grunt-contrib-jasmine.
No problem, glad it worked out and thanks for highlighting some documentation failures. I'll take care of that soon.
from grunt-contrib-jasmine.
Related Issues (20)
- 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
- Document customBootFile option
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.