You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
18: Upgrade runner to meet version 2 spec (exercism#104)
* Run tests with custom hspec formatter which outputs result.json v2
* Update all expected results.json files in tests
* Added extra pre-compiled packages needed by injected code
* Improved comment
Co-authored-by: Erik Schierboom <[email protected]>
* Fixed success results.json + improved run.sh
- If all tests pass, hspec formatter now correctly outputs top-level
success status
- Implemented bash LSP hints in bin/run.sh
- Added newline at end of code injection to package.yaml files
* Fixed expected results in example-empty-file and example-syntax-error
* Precompile bin/setup-tests executable instead of using stack runghc
* Fixed bin/run.sh to run setup-tests executable correctly
* Automatically cleanup code injections when running tests
* Copy results.json to desired output path
* Improved cleanup process
---------
Co-authored-by: Erik Schierboom <[email protected]>
"message": "leap> test (suite: test)\n\n\nisLeapYear\n 2015 - year not divisible by 4 in common year [✘]\n\nFailures:\n\n test/Tests.hs:20:55: \n 1) isLeapYear 2015 - year not divisible by 4 in common year\n expected: False\n but got: True\n\n To rerun use: --match \"/isLeapYear/2015 - year not divisible by 4 in common year/\"\n\n\n1 example, 1 failure\n\nleap> Test suite test failed\n\nError: [S-7282]\n Stack failed to execute the build plan.\n\n While executing the build plan, Stack encountered the following errors:\n\n TestSuiteFailure (PackageIdentifier {pkgName = PackageName \"leap\", pkgVersion = mkVersion [1,6,0,10]}) (fromList [(\"test\",Just (ExitFailure 1))]) Nothing \"\""
5
-
}
2
+
"message": null,
3
+
"status": "fail",
4
+
"tests": [
5
+
{
6
+
"message": "Expected 'False' but got 'True'",
7
+
"name": "2015 - year not divisible by 4 in common year",
8
+
"status": "fail"
9
+
},
10
+
{
11
+
"message": "Expected 'False' but got 'True'",
12
+
"name": "1970 - year divisible by 2, not divisible by 4 in common year",
13
+
"status": "fail"
14
+
},
15
+
{
16
+
"message": "Expected 'True' but got 'False'",
17
+
"name": "1996 - year divisible by 4, not divisible by 100 in leap year",
18
+
"status": "fail"
19
+
},
20
+
{
21
+
"message": "Expected 'True' but got 'False'",
22
+
"name": "1960 - year divisible by 4 and 5 is still a leap year",
23
+
"status": "fail"
24
+
},
25
+
{
26
+
"message": "Expected 'False' but got 'True'",
27
+
"name": "2100 - year divisible by 100, not divisible by 400 in common year",
28
+
"status": "fail"
29
+
},
30
+
{
31
+
"message": "Expected 'False' but got 'True'",
32
+
"name": "1900 - year divisible by 100 but not by 3 is still not a leap year",
33
+
"status": "fail"
34
+
},
35
+
{
36
+
"message": "Expected 'True' but got 'False'",
37
+
"name": "2000 - year divisible by 400 in leap year",
38
+
"status": "fail"
39
+
},
40
+
{
41
+
"message": "Expected 'True' but got 'False'",
42
+
"name": "2400 - year divisible by 400 but not by 125 is still a leap year",
43
+
"status": "fail"
44
+
},
45
+
{
46
+
"message": "Expected 'False' but got 'True'",
47
+
"name": "1800 - year divisible by 200, not divisible by 400 in common year",
"message": "\n/solution/src/LeapYear.hs:1:1: error:\n File name does not match module name:\n Saw: ‘Main’\n Expected: ‘LeapYear’\n\nError: [S-7282]\n Stack failed to execute the build plan.\n\n While executing the build plan, Stack encountered the following errors:\n\n [S-7011]\n While building package leap-1.6.0.10 (scroll up to its section to see the error) using:\n --verbose=1 build lib:leap test:test --ghc-options \"\"\n Process exited with code: ExitFailure 1 "
0 commit comments