-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One test CLI to rule them all #14476
Comments
I imagine that you can run multiple types of tests by adding them as additional arguments, e.g. node scripts/test api unit --jest, right? |
I see a few advantages to doing as CJ suggested, but I'm concerned about the difficulty of implementing the feature versus its payoff
If these seem like important features then we probably should find a syntax that allows specific arguments to be used for explicit test configs (maybe I don't expect it to be super easy and will probably require custom argv parsing since we usually only get a map and won't be able to apply configuration to individual types. I also expect CI to run these tests in independent jobs for concurrency, so it won't utilize this feature. Finally, I don't expect resource sharing to be very straight forward. I would prefer just supporting
|
++ to keeping the interface simple for now. If there's a real need that |
cc @liza-mae ( this may be of interest to you) |
Pinging @elastic/kibana-operations |
This will be done with Bazel - this issue is not needed to track this anymore. |
We have a ton of different ways to test code and features in Kibana, but there's very little consistency in how you run any of the tests. I propose a single test CLI to run any or all of the individual test suites:
tasks
run all tests (default)
run unit-like tests, no slow tests
test end-user interactions, a mix of selenium tests and http request testing (server)
test all api endpoints (/api)
test upgrade paths to the current version
test different deployment scenarios (load balanced, local coordinating node, base path)
guaranteed release blockers
all tasks also accept:
--grep
--bail
--quiet
--verbose
--debug
The text was updated successfully, but these errors were encountered: