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

Add Unit and Integration Tests for Translation Workflow #15

Open
skytin1004 opened this issue Sep 28, 2024 · 0 comments
Open

Add Unit and Integration Tests for Translation Workflow #15

skytin1004 opened this issue Sep 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@skytin1004
Copy link
Collaborator

Please provide us with the following information:

We need to add test code to evaluate the basic functionality of the functions, as well as integration tests that actually translate images and markdown and verify that the links are properly matched.

While basic function tests can be created quickly, we need to discuss how to approach the integration tests effectively.

Tasks

  1. Implement unit tests to evaluate the basic functionality of individual functions.
  2. Plan and create integration tests that:
    • Translate actual images and markdown files.
    • Verify that translated images and markdown are correctly linked.
  3. Discuss the strategy for running integration tests efficiently, considering external dependencies (e.g., Azure Image Analysis, OpenAI API).

Additional Notes

  • Integration tests should simulate a real use-case scenario, ensuring that the translation process works end-to-end.
  • We need to consider using Mock Responses during testing.

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant