Skip to content
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

test: major examples refactoring for docs, unit tests and e2e tests #336

Merged
merged 6 commits into from
Apr 21, 2024

Conversation

ahochsteger
Copy link
Owner

@ahochsteger ahochsteger commented Apr 21, 2024

Description

This PR implements the possibility to create examples that support the following:

  • generate documentation pages
  • can be used in the playground
  • generate unit test spec files
  • generate end-to-end tests for Google Apps Script

Type of change

  • Tests and documentation

How has this been tested?

Several new test examples have been added:

  • src/examples/actions/actionAttachmentExtractText.ts
  • src/examples/actions/actionExport.ts
  • src/examples/actions/actionThreadRemoveLabel.ts
  • src/examples/basics/simple.ts
  • src/examples/features/convertToGoogle.ts
  • src/examples/migrations/migrationAdvanced.ts
  • src/examples/migrations/migrationMin.ts
  • src/examples/regressions/issue301.ts

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes

@coveralls
Copy link
Collaborator

coveralls commented Apr 21, 2024

Pull Request Test Coverage Report for Build 8775354500

Details

  • 606 of 614 (98.7%) changed or added relevant lines in 11 files are covered.
  • 13 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+1.5%) to 92.74%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/lib/e2e/E2E.ts 43 51 84.31%
Files with Coverage Reduction New Missed Lines %
src/lib/config/v1/V1ToV2Converter.ts 1 96.03%
src/lib/processors/ThreadProcessor.ts 12 89.52%
Totals Coverage Status
Change from base Build 8749265336: 1.5%
Covered Lines: 8384
Relevant Lines: 8905

💛 - Coveralls

Copy link

@ahochsteger ahochsteger merged commit 1545e87 into main Apr 21, 2024
5 checks passed
@ahochsteger ahochsteger deleted the test-examples-refactoring branch April 21, 2024 20:42
Copy link

github-actions bot commented May 4, 2024

🎉 This PR is included in version 2.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants