Comments (1)
I don't know if you still need a help with this or not. But I'll try to answer some of the question for future ref.
My initial expectation was that setting the httpBase option to http://localhost:8000 (for example) would result in all the strings (not only found files) in the src option to be appended with this string and passed on to the PhantomJS browser.
That was made clear in README
:
#### httpBase
Type: `String`
Default: `false`
Create URLs for the `src` files, all `src` files are prefixed with that base.
I thought that the following would provide the http://localhost:8000/test.html to the browser if the test.html was located in the www directory:
src: ['test.html']
(first example) will be expanded to an empty object. AFAIK src
should be a valid glob
pattern, that expand to path/to/file
. So it will not work.
I also tried the following, which to me seems like the only way that the option could have worked without breaking the (what I suspect to be) Grunt.js convention of only listing source files that are found to actually exist:
There is an other rule that says httpBase
should not be terminated with a /
(see source code).
One thing you should know is, your configuration of your local web server (in your case you're using grunt-contrib-connect
) doesn't matter to this plugin. So, you have to configure it correctly (adjust the base
option) in order to work with this plugin.
Closing this for now, feel free to ask if you have followup questions.
from grunt-contrib-qunit.
Related Issues (20)
- Can't find variable test
- grunt-contrib-qunit should support headless chrome HOT 5
- Meaningless error when resources failed to load or there is a script error HOT 1
- qunit grunt fails with phantomjs HOT 2
- Appears to try loading the file from the wrong location HOT 1
- Option 'inject' stopped working in 3.0.0 HOT 3
- puppeteer unable to launch Chrome on Windows HOT 3
- Could not load the specified bridge file HOT 7
- Blocked by CORS policy HOT 5
- Missing tag for 3.1.0 version HOT 1
- Unable to run qunit tests for SAP UI5 applications
- Update repo "About" description HOT 1
- Page timeout no longer works since grunt-contrib-qunit 3.0
- Switching to ESM only HOT 1
- Problem with puppeteer version on Apple M1 chip HOT 3
- Bridge's testEnd event handler is passing too much to sendMessage: JSON errors. HOT 8
- Upgrade puppeteer to the latest?
- Unreadable output for deepEqual() assertions HOT 1
- Seeing "Error: ReferenceError: QUnit is not defined" HOT 8
- Fail to install "Puppeteer" dependency 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-qunit.