Skip to content

Pass --empty to foundry_test_utils::initialize #11625

@DaniPopes

Description

@DaniPopes

We currently initialize the default test projects with the default forge init, however most of the time we wipe* the project, or just ignore these files.

We can speed up our test suite by making the default contracts opt-in instead of opt-out.

  • Pass --empty to foundry_test_utils::util::initialize:
    cmd.args(["init", "--force"]).assert_success();
  • Add fn initialize_default_contracts to TestProject for the tests that use them
  • And deal with the fallout in tests.

Metadata

Metadata

Assignees

Labels

A-internalsArea: internalsfirst issueA good way to start contributing

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions