Skip to content

fix: always compile sources when running tests#7572

Merged
klkvr merged 1 commit into
masterfrom
klkvr/fix-get-code
Apr 5, 2024
Merged

fix: always compile sources when running tests#7572
klkvr merged 1 commit into
masterfrom
klkvr/fix-get-code

Conversation

@klkvr

@klkvr klkvr commented Apr 5, 2024

Copy link
Copy Markdown
Member

Motivation

Closes #7569

Solution

Always include all source files into compiler input when running tests to ensure that getCode can use artifacts from src without workarounds.

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Comment on lines +204 to +205
// Always recompile all sources to ensure that `getCode` cheatcode can use any artifact.
test_sources.extend(source_files_iter(project.paths.sources));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ah this makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vm.getCode doesn't find artifacts by name

2 participants