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

Implement Basic Unit Tests for SocraticAgent and Lexer Classes #11

Closed
1 of 7 tasks
p3nGu1nZz opened this issue Mar 29, 2024 · 2 comments · Fixed by #14
Closed
1 of 7 tasks

Implement Basic Unit Tests for SocraticAgent and Lexer Classes #11

p3nGu1nZz opened this issue Mar 29, 2024 · 2 comments · Fixed by #14
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@p3nGu1nZz
Copy link
Collaborator

p3nGu1nZz commented Mar 29, 2024

Implement Basic Unit Tests for SocraticAgent and Lexer Classes

Objective:

To ensure the reliability and correctness of the SocraticAgent and Lexer classes within the Dialogos project, we aim to implement a suite of basic unit tests.

Tasks:

  • Identify key functionalities and methods within the SocraticAgent class that require testing.
  • Develop unit tests for the Initialize, OnEpisodeBegin, CollectObservations, and OnActionReceived methods of the SocraticAgent.
  • Identify critical operations within the Lexer class, such as text transformation and numerical representation.
  • Create unit tests for the Transform, CalculateWhitespace, CalculateVariance, and CreateQuaternion methods of the Lexer.
  • Ensure that tests cover a range of input scenarios, including edge cases.
  • Integrate tests with Unity Test Runner for automated testing within the Unity Editor.
  • Document test cases and expected outcomes to facilitate maintenance and future development.

Acceptance Criteria:

  • All unit tests should pass successfully.
  • Tests should provide comprehensive coverage of the identified methods.
  • The testing framework should be easily extendable for future test cases.

This ticket will serve as the foundation for maintaining high code quality and facilitating future feature development with confidence.

@p3nGu1nZz p3nGu1nZz added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Mar 29, 2024
@p3nGu1nZz p3nGu1nZz self-assigned this Mar 29, 2024
@p3nGu1nZz p3nGu1nZz pinned this issue Mar 29, 2024
@p3nGu1nZz
Copy link
Collaborator Author

@p3nGu1nZz
Copy link
Collaborator Author

Test runner and NUnit setup and automated locally. github action still needs more configuration to automate. see issue #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant