Open EduardSergeev opened 1 week ago
Thanks! This is a definite improvement. It would be nice to have some tests to make sure that basic functionality works, at least. However this is also a lot of extra stuff that I'm not familiar with and might not want to maintain. I'll think about it.
Not sure if you need it but I thought it might be helpful to have some tests to check basic functionality of Purple York and to run them via matrix build to check for regression.
This change contains three simple tests defined in providers.test.ts. Each test:
Document
and correspondingDiagnostic[]
.E.g. a test which is defined as:
loads Error.hs, waits until the extension produces 1 error and then runs the code with those two assertions.
Test suite can be run via
or with test coverage report (produces by c8):
Current code coverage:
And one from CI
This change also adds matrix build which runs all tests on all supported platforms with various GHC versions. Here is an example of new CI run. It also uploads test coverage to https://coveralls.io, e.g. recent coverage report.