Comments (8)
Actually, I think we should separate the UI from the server (depends on #2467) and do the testing solely in javascript. There are proposals to rewrite the UI in Elm following the current alertmanager rewrite.
from prometheus.
👍
from prometheus.
I'd recommend Agouti, a webdriver client for Go:
http://agouti.org/#using-agouti-by-itself
Here are some examples tests I've written using Agouti:
https://github.com/mattbostock/leavediary/blob/a8eaf858c2b941773a471e7fc76b2f43aaa9e26c/acceptance_test.go#L74
from prometheus.
@grobie: Can you expand on what you mean by separating the UI from the server? Do you mean the UI will be entirely rendered using javascript, which connects to the API backend?
I think I mistook the intent of this issue to be 'acceptance tests', i.e. blackbox verification of common user journeys. Completely agree on testing the javascript side in isolation. Perhaps those might be covered as part of the work on integration testing: #1106
from prometheus.
from prometheus.
Agreed, and I've actually gained some experience recently with this. So if someone needs help setting up the frontend tests, let me know.
from prometheus.
This has been auto-closed erroneously.
from prometheus.
The new React UI has tests
from prometheus.
Related Issues (20)
- Prometheus high memory usage(>960Gib) with 1200+ ServiceMonitors HOT 12
- PromQL/storage: Require selectors to always return matching results HOT 6
- Implement New Metric Type for Constant Value Metrics to Optimize Storage in Prometheus HOT 2
- Allow configuration of partial evaluation strategies for rule group evaluation failures
- add support for http2 over tcp aka h2c
- Prometheus scraped pod metrics is not matching with kubectl top pod result
- promql: setting multiple regexp's for `__name__` doesn't work anymore HOT 5
- New Prometheus UI HOT 2
- Update oauth2 options description HOT 1
- CPU, RAM, Storage Requirements for Prometheus (Storage answered)
- Promote new-service-discovery-manager HOT 2
- puppetdb_sd_configs - TTL for resources HOT 1
- Eager compaction of stale series
- prometheus v2.49.1 has too many wal files ,wal replay too slow
- confuse of function quantile HOT 1
- Random scrape targets get stuck HOT 11
- Proposal: PromQL arithmetic with default value HOT 27
- [Docs] Hidden command line flag HOT 3
- Pause and Resume Rule Group Evaluation HOT 8
- Metadata API JSON respones broken after commit 8065bef HOT 1
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 prometheus.