slackapi / deno-slack-sdk

SDK for building Run on Slack apps using Deno
https://api.slack.com/automation
MIT License
158 stars 27 forks source link

Improve integration tests #225

Closed WilliamBergamin closed 11 months ago

WilliamBergamin commented 11 months ago

Summary

This PR introduces an integration test that ensure that the output files of the generation script are always valid typescript. The goal of this test is to ensure no breaking changes to the generation script are introduced inadvertently.

The integration tests are not included in the code coverage but will get executed by the CI pipeline.

testing

  1. pull this branch
  2. run deno task test to execute all tests
  3. Ensure tests/integration/schema/slack/functions/_scripts/write_function_files_test.ts gets executed
  4. run deno task coverage to execute the code coverage
  5. Follow the steps in src/schema/slack/functions/_scripts/README.md to try out the generation script and ensure everything still works

Requirements