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 base integration tests #16

Merged
merged 5 commits into from
Oct 6, 2023

Conversation

mdrokz
Copy link
Contributor

@mdrokz mdrokz commented Oct 5, 2023

Changes

  • move integration tests to main.rs since the crate is not configured as a library
  • use TestBackend in tui crate to test the runner
  • make render from the App struct public so we can render inside tests
  • move test related dependencies to dev-dependencies section in cargo.toml

I basically use the render method to render the frames once and extract the text buffer to validate if it has the correct input. Later on we can write end-to-end tests to test the actual binary

Closes #13

Copy link
Owner

@radlinskii radlinskii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! LGTM 🥳

@radlinskii radlinskii merged commit d5955dd into radlinskii:main Oct 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add integration tests
2 participants