Skip to content

Explore using insta for build output tests #249

Open
@edmorley

Description

@edmorley

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    internalInternal (non-user facing) buildpack changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions