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

Common: Automate testing #149

Open
14 tasks
seclerp opened this issue Mar 17, 2023 · 1 comment
Open
14 tasks

Common: Automate testing #149

seclerp opened this issue Mar 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@seclerp
Copy link
Member

seclerp commented Mar 17, 2023

Currently, it's hard to determine if everything is OK with release without making at least manual smoke testing. Let's introduce a set of automated tests to introduce more robust CI checks before release.

Items highlighted with bold font are the most important to cover with tests.

Progress

Frontend tests

  • Test data
    • Prepare test solution(s)
  • Integration tests
    • AddMigrationDialogWrapper
    • RemoveLastMigrationDialogWrapper
    • GenerateScriptDialogWrapper
    • UpdateDatabaseDialogWrapper
    • DropDatabaseDialogWrapper
    • ScaffoldDbContextDialogWrapper
    • CommandPreviewDialogWrapper
    • CommonDialogWrapper
    • AppSettingsConnectionProvider
    • DataGripConnectionProvider
    • UserSecretsConnectionProvider
    • PreferredProjectsManager
    • DialogsStateService

Implementation notes

  • Integration tests could use a data from real solution and project environment but should not change or mutate it
@seclerp seclerp added this to the Backlog milestone Mar 17, 2023
@seclerp seclerp self-assigned this Mar 17, 2023
@seclerp seclerp added the enhancement New feature or request label Mar 17, 2023
@seclerp
Copy link
Member Author

seclerp commented Aug 27, 2023

Integration test cases

Add Migration

Positive

  • Create a new migration with a valid name when the migration list is empty, should create migration
  • Create a new migration with a valid name when the migration list is not empty, should create migration
  • Create a new migration with a default name when the migration list is empty, should create migration, the name should be "Initial"
  • Create a new migration with a default name when the migration list is not empty, the name should be ""
  • Create a new migration with a valid migrations folder, should create migration there

Negative

  • Create a new migration with an invalid name, should fail validation

TBD

@seclerp seclerp linked a pull request Oct 3, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant