Skip to content

JUnit tests for the language server #129

Description

@CatarinaGamboa

Why: the server maps verifier output to diagnostics and decides which folder to verify. PathUtils.extractBasePath cuts the path at the first src folder plus one more, so the folder layout decides what gets verified. This logic is deterministic and cheap to test.

What:

  • Add server/src/test/java, with tests for PathUtils (including a src folder at different depths, and Windows-style URIs) and the DTO/diagnostic converters.
  • Add mvn -B test to test.yml.

References:

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    testingTesting related

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions