-
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
Failing test: Jest Tests.x-pack/plugins/index_lifecycle_management/__jest__/client_integration/edit_policy/form_validation - <EditPolicy /> policy name validation doesn't allow empty policy name #141645
Comments
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
Pinging @elastic/kibana-app-services (Team:AppServicesUx) |
@spalger, thanks, looking. Oh, looks like there is quite a bit of the flakiness history in these tests... just saw a long discussion here #115307 with @sebelga 😢 cc @alisonelizabeth @yuliacech, just fyi about all the skipped validation tests |
@Dosant we don't have any existing docs but I added an incomplete "What are the different types of tests, when should we write which type?" entry to our documentation matrix so we'll get to it eventually. For the meantime, the gist is that Jest integration tests are just in a different directory and have two main differences:
Unit tests are really intended for testing one small piece of the code in isolation. Shared state between test/dependencies on previous tests, taking more than a few milliseconds to run, or integrating with many systems and running an entire simulated front-end application in Node are all examples of things that go beyond the scope of what a unit test is intended for. In order to move these tests to be "integration tests" they should be in a directory named "integration_tests". These tests will run when you use |
A test failed on a tracked branch
First failure: CI Build - main
The text was updated successfully, but these errors were encountered: