Comments (4)
Not sure if you're looking for input, but I'm on the fence on this. I played with doing this in libs before, but it seems to add complexity that is out of the scope of the core purpose of the application.
For this case, I use a bash testing frame work like CLIUnit (shameless plug) for CLI applications, or parse the json output in to another testing framework for other applications.
/2cents
from phantomas.
@jmervine, thanks for your input, but I don't agree :) My inspiration comes from http://yslow.org/phantomjs/
from phantomas.
@macbre Understood. :)
from phantomas.
Result example:
plain:
phantomas v0.8.1 metrics for <http://phantomjs.org>:
✓ requests: 9
* gzipRequests: 2
* postRequests: 0
* httpsRequests: 1
✓ redirects: 0
* notFound: 0
✗ timeToFirstByte: 622 Assertion failed! Expected to be less than or equal: 600
* timeToLastByte: 628
* bodySize: 23368
* contentLength: 31206
* ajaxRequests: 0
* htmlCount: 1
...
json:
{
"asserts": {
"rules": {
"requests": 12,
"redirects": 0,
"domains": 2,
"timeToFirstByte": 600,
"httpTrafficCompleted": 1000
},
"failedCount": 2,
"failedAsserts": [
"domains",
"httpTrafficCompleted"
]
}
}
from phantomas.
Related Issues (20)
- Run integration tests in parallel
- Test failed - request throttled by proxy. Is it possible to add custom header to a config? HOT 1
- Disable flaky tests that randomly fail
- Improve integration with GitHub Actions
- CSS::Sassv3.4.11: 3 vulnerabilities (highest severity is: 8.1) - autoclosed HOT 1
- CSS::Sassv3.4.11: 3 vulnerabilities (highest severity is: 8.1) - autoclosed HOT 1
- CSS::Sassv3.4.11: 3 vulnerabilities (highest severity is: 8.1) - autoclosed HOT 1
- Monitoring error pages HOT 6
- CSS::Sassv3.4.11: 3 vulnerabilities (highest severity is: 6.2) - autoclosed HOT 1
- CSS::Sassv3.4.11: 3 vulnerabilities (highest severity is: 6.2)
- Resume on error
- Run selected modules is not working
- Run a local instance of httpbin to prevent random timeouts causing the tests to fail
- mockery-2.1.0.tgz: 1 vulnerabilities (highest severity is: 9.8)
- Pass headless: "new" to puppeteer.launch() HOT 2
- Memory leaks occur after continuous operation for a period of time
- Browser not properly closing HOT 1
- Offenders not tested in integration tests
- INTERNAL ERROR: missing context with id HOT 7
- eslint-plugin-node-11.1.0.tgz: 2 vulnerabilities (highest severity is: 7.5)
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 phantomas.