(t *testing.T)
| 37 | } |
| 38 | |
| 39 | func TestGetCommandMissingConfig(t *testing.T) { |
| 40 | testConfig, ok := TestConfigurations["ruby"] |
| 41 | assert.True(t, ok, "unexpectedly unable to find ruby test config") |
| 42 | |
| 43 | _, err := testConfig.GetTestCommand() |
| 44 | assert.Error(t, err) |
| 45 | // any assertions about this error message have to work across all platforms, so be vague |
| 46 | // unix: ".exercism/config.json: no such file or directory" |
| 47 | // windows: "open .exercism\config.json: The system cannot find the path specified." |
| 48 | assert.Contains(t, err.Error(), filepath.Join(".exercism", "config.json:")) |
| 49 | } |
| 50 | |
| 51 | func TestIncludesSolutionAndTestFilesInCommand(t *testing.T) { |
| 52 | testConfig, ok := TestConfigurations["prolog"] |
nothing calls this directly
no test coverage detected