MCPcopy Create free account
hub / github.com/exercism/cli / TestGetCommandMissingConfig

Function TestGetCommandMissingConfig

workspace/test_configurations_test.go:39–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func 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
51func TestIncludesSolutionAndTestFilesInCommand(t *testing.T) {
52 testConfig, ok := TestConfigurations["prolog"]

Callers

nothing calls this directly

Calls 2

GetTestCommandMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected