Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Reduce code reuse in CompletionSpec.hs #893

Open
@cronokirby

Description

@cronokirby

Having modified this file a few times recently, I've noticed that there's quite a bit of code repetition in how we execute tests.

Often times all we want to do is insert some text at any blank location and see what completion we get.
Or we just want to edit a specific location and again, check completions. The machinery to setup a session and open the same file is repeated all throughout the various tests.

I think it would be a good idea to address this by either creating reusable functions for testing completions in the module, or perhaps even creating an even higher level interface over test that edit a file, so that we could reuse it across all of the editing tests.

Would love to gather thoughts about this :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: refactorRefactor and tidy up internals.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions