Comments (2)
Sure, we can do that.
My initial thought is to watch the --url option, and default to localhost:3000 if it's not detected. The only only real question is whether we ought to check --url before or after we check if meteor is running. (That sort of depends on whether there's an edge case where we might want to check both. Ping-pong testing? Baselining? It's not completely out of the question.)
https://github.com/awatson1978/starrynight/blob/develop/tool/frameworks/nightwatch.js
There's also the ability to specify an external URL in the script using the .url() method. So it's not unheard of to have a devScript.js and prodScript.js, which works reasonably well for basic load testing. But it would be nice to be able to specify the script URLs on the command line. For that, we would need to look at writing to the globals.js file; which is exactly what it's for.
http://nightwatchjs.org/guide#external-globals
Happy to accept a pull-request on this item.
from starrynight.
For the first part, I would say that since the url is specified in the nightwatch.json file anyways, we should look at whatever url is being looked at for the test, and test that with the http request.
For the second one, I'm not sure we should couple the url being tested with the globals.js file.
If I come up with something, I'll let you know.
from starrynight.
Related Issues (20)
- Linting HOT 3
- Debugging Tools
- Dispatcher Architecture
- Logging HOT 2
- travis.yml script mishandles config path prefix
- nightwatch.js should "touch" tests/logs/selenium-debug.log HOT 2
- Not possible to see bottom parts of the left-side menu of the Testing page HOT 1
- Short pages seem to be blank when switched to from long page. HOT 1
- starrynight generate-gitignore
- update .travis.yml with docker infrastructure
- starrynight generate --travis --gitignore --linters
- error installing starrynight HOT 20
- Silently ignoring errors in walkthrough files
- ENOENT error on starrynight installation HOT 1
- api directory not being picked up by autoscan
- Review audit file permissions command
- Test tags HOT 4
- Getting errors on command line run HOT 2
- starrynight.meteor.com not available 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 starrynight.