Skip to content

Add test and debug profiles in Scarb #126

Description

@piotmag769

It is mostly for convenience.

  1. debug profile - name TBD
    TODO: debug profile should have all the things debugger needs turned on by default (e.g. skip-optimizations = true). We can make it a default profile used by snforge test --launch-debugger - mind that it would require changes in debug lenses logic in LS. Feel free to create appropriate follow-up tasks after taking on this issue.
    Effect: better UX when using debugger.

  2. test profile
    TODO:test profile should have the same settings as dev but with sierra-replace-ids = false. It would serve the same function as in Cargo. Then we can make test targets in scarb respect sierra-replace-ids - currently it has it hardcoded to false. Rationale for hardcoding it to false was that tests in projects such as garaga would crash with OOM if sierra-replace-ids = true was respected (which is the default for dev profile).
    Effect: better devX for cairo-debugger developers (ability to obtain human readable sierra in tests)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions