-
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
[Plugin Generator] Add integration test #43219
Conversation
and add yarn script.
Pinging @elastic/kibana-platform |
💔 Build Failed |
💔 Build Failed |
After the fixups are merged, these should fail.
💔 Build Failed |
When these fail, that means the broken commands have been fixed.
💔 Build Failed |
💔 Build Failed |
and bump global timeout for this test.
💚 Build Succeeded |
not error. Add an integration test to verify the change.
💚 Build Succeeded |
…tor/integration-test
💚 Build Succeeded |
refactor the jest cli option, "higher up".
💚 Build Succeeded |
…tor/integration-test
drop needless escape char.
💚 Build Succeeded |
@@ -78,7 +78,7 @@ module.exports = { | |||
}, | |||
allowSameFolder: { type: 'boolean' }, | |||
}, | |||
additionalProperties: false, | |||
additionalProperties: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can get rid of this right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was to make yarn lint
succeed, as it was failing. I'll switch it back and see what we get.
const create = spawn(process.execPath, ['scripts/generate_plugin.js', pluginName], { | ||
cwd: ROOT_DIR, | ||
}); | ||
create.stdout.on('data', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind tossing a comment here to describe what's happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You betcha!
…tor/integration-test
Switch the generator to a function declaration, instead of an arrow fn, for better readability and add a comment to help as well.
💚 Build Succeeded |
…tor/integration-test
…tor/integration-test
While debugging, I noticed the `uiApps` collection contains the integration test's plugin. Also, it looks like some logic was adding the plugin's tests, again. I want this to run in ci to see if the "Test Result : Browser Unit Tests" report is back around the 500 count mark, with this logic commented out.
💔 Build Failed |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
@spalger no...thank you! :) |
Addresses elastic#17061 ### Features Covered - generating a plugin #### Then from within the generated plugin's directory - running `yarn build` - running `yarn test:browser` - running `yarn test:server` - running `yarn start` - running `yarn preinstall` - running `yarn lint` - running `yarn kbn --help` - running `yarn es --help`
* [Plugin Generator] Add integration test (#43219) Addresses #17061 ### Features Covered - generating a plugin #### Then from within the generated plugin's directory - running `yarn build` - running `yarn test:browser` - running `yarn test:server` - running `yarn start` - running `yarn preinstall` - running `yarn lint` - running `yarn kbn --help` - running `yarn es --help` * Fixup parse error for intl file
Addresses #17061
Features Covered
Then from within the generated plugin's directory
yarn build
yarn test:browser
yarn test:server
yarn start
yarn preinstall
yarn lint
yarn kbn --help
yarn es --help