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

Explore using insta for build output tests #249

Open
edmorley opened this issue Aug 27, 2024 · 0 comments
Open

Explore using insta for build output tests #249

edmorley opened this issue Aug 27, 2024 · 0 comments
Labels
internal Internal (non-user facing) buildpack changes

Comments

@edmorley
Copy link
Member

This buildpack's integration tests have a number of build output assertions, since build logs are a key part of the buildpack UX.

These are currently implemented using indoc, eg:

assert_contains!(
context.pack_stdout,
&formatdoc! {"
[Determining Python version]
No Python version specified, using the current default of Python {DEFAULT_PYTHON_VERSION}.
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
[Installing Python and pip]
Installing Python {DEFAULT_PYTHON_VERSION}
Installing pip {PIP_VERSION}
[Installing dependencies using pip]
Running pip install
Collecting typing-extensions==4.7.1 (from -r requirements.txt (line 2))
Downloading typing_extensions-4.7.1-py3-none-any.whl.metadata (3.1 kB)
Downloading typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Installing collected packages: typing-extensions
Successfully installed typing-extensions-4.7.1
"}
);

I'd like to try out the insta crate for these instead:
https://insta.rs/

@edmorley edmorley added the internal Internal (non-user facing) buildpack changes label Aug 27, 2024
@edmorley edmorley changed the title Explore using insta for build output log assertions Explore using insta for build output tests Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal (non-user facing) buildpack changes
Projects
None yet
Development

No branches or pull requests

1 participant