exercism / haskell-test-runner Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU Affero General Public License v3.0
License: GNU Affero General Public License v3.0
Add matrix dependency which can be helpful for creative solutions to Crypto Square, for instance.
I tried pushing up a branch for this, but I'm getting this:
ERROR: Permission to exercism/haskell-test-runner.git denied to Pilatch.
If possible, this test runner should be updated to version 2 of the test runner interface specification.
The version 2 spec differs from version 1 in that the results.json
file contains detailed information on individual tests.
This information includes things like:
You are completely free on how you want to extract the test code, either via the AST or via finding the test code in the source code text via string manipulation.
Let me know if there are any questions.
If possible, this test runner should be updated to version 2 of the test runner interface specification.
The version 2 spec differs from version 1 in that the results.json
file contains detailed information on individual tests.
This information includes things like:
You are completely free on how you want to extract the test code, either via the AST or via finding the test code in the source code text via string manipulation.
Let me know if there are any questions.
The tests for the matrix exercise pass locally but fail when using exercism submit
or the online editor with this error message:
Cabal file info not found for vector-0.12.1.2@sha256:9291bc581f36e51d5bda9fce57cb980fbec3dd292996896f285fef39eb80a9a0,7364, updating
Selected mirror https://hackage.haskell.org/
Downloading root
HttpExceptionRequest Request {
host = "hackage.haskell.org"
port = 443
secure = True
requestHeaders = [("Accept-Encoding",""),("User-Agent","Haskell pantry package")]
path = "/root.json"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
}
(ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "hackage.haskell.org", service name: Just "443"): does not exist (Try again))
Community submissions from more than 2 months ago were successful, but recent submissions also fail.
If possible, this test runner should be updated to version 3 of the test runner interface specification. In version 3, one additional feature is enabled: the ability to link individual tests to tasks.
This allows the website to show which tests belong to which tasks.
The way tests are linked to tasks is via an (optional) task_id
field, which is an integer that matches the number of the task as defined in the exercise's instructions.md
file (note: the instructions start at index 1).
This is an example of a test in the results.json
file:
{
"name": "Expected oven time in minutes",
"status": "pass",
"task_id": 1,
"test_code": "Assert.Equal(40, Lasagna.ExpectedMinutesInOven());"
}
You are completely free in how to implement this. Some options are:
.meta/config.json
file)As this test runner currently implements version 1 of the test runner specification, it might be good to first upgrade to version 2 of the test runner specification before upgrading to version 3.
Let me know if there are any questions.
Looking through the history of PRs to pre-compiled/package.yaml in https://github.com/exercism/haskell-test-runner/commits/main/pre-compiled/package.yaml, it looks like for most of them (all but one), you've sought an opinion from a Haskell track maintainer. That makes sense if the track maintainers are making sure that the packages being added are reasonable. So if that's going to happen every time, maybe an update to https://github.com/exercism/haskell-test-runner/blob/main/.github/CODEOWNERS would be warranted, so that the track maintainers will automatically get added to PRs for that file?
It's just a suggestion; if you think there are cases where a track maintainer's input isn't necessary and therefore it should be left on a case-by-case basis instead of automatically, that's fine too.
If possible, this test runner should be updated to version 3 of the test runner interface specification. In version 3, one additional feature is enabled: the ability to link individual tests to tasks.
This allows the website to show which tests belong to which tasks.
The way tests are linked to tasks is via an (optional) task_id
field, which is an integer that matches the number of the task as defined in the exercise's instructions.md
file (note: the instructions start at index 1).
This is an example of a test in the results.json
file:
{
"name": "Expected oven time in minutes",
"status": "pass",
"task_id": 1,
"test_code": "Assert.Equal(40, Lasagna.ExpectedMinutesInOven());"
}
You are completely free in how to implement this. Some options are:
.meta/config.json
file)As this test runner currently implements version 1 of the test runner specification, it might be good to first upgrade to version 2 of the test runner specification before upgrading to version 3.
Let me know if there are any questions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.