Skip to content

[VSCODE] runTests and runDebugTest command use folder name as package name #1390

@TheOrioli

Description

@TheOrioli

AFAIK In Odin the name of the package does not need to match the name of the folder, and in certain cases a user might not even want that. For example in the following structure

  • src
    • example
      • file.odin <-- has package example
  • tests
    • example
      • file_test.odin <-- has package example_test which imports example

currently with the VSCode plugin it is mandatory to call the test folder example_test to make this structure work.

It would be more user friendly if the test commands would correctly grab the package a test belongs to from the source code, which would then enable this and any other workflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions