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

Function TestWindowsCommands

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

Source from the content-addressed store, hash-verified

21}
22
23func TestWindowsCommands(t *testing.T) {
24 testConfig, ok := TestConfigurations["cobol"]
25 assert.True(t, ok, "unexpectedly unable to find cobol test config")
26
27 cmd, err := testConfig.GetTestCommand()
28 assert.NoError(t, err)
29
30 if runtime.GOOS == "windows" {
31 assert.Contains(t, cmd, ".ps1")
32 assert.NotContains(t, cmd, ".sh")
33 } else {
34 assert.Contains(t, cmd, ".sh")
35 assert.NotContains(t, cmd, ".ps1")
36 }
37}
38
39func TestGetCommandMissingConfig(t *testing.T) {
40 testConfig, ok := TestConfigurations["ruby"]

Callers

nothing calls this directly

Calls 1

GetTestCommandMethod · 0.80

Tested by

no test coverage detected