We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9d9b2b commit 8de6e57Copy full SHA for 8de6e57
cli/cmd/main_test.go
@@ -32,6 +32,12 @@ func TestScan(t *testing.T) {
32
})
33
}
34
35
+func TestDevX(t *testing.T) {
36
+ testscript.Run(t, testscript.Params{
37
+ Dir: "testdata/devx",
38
+ })
39
+}
40
+
41
func mockEarthly() int {
42
for _, arg := range os.Args {
43
fmt.Println(arg)
cli/cmd/testdata/devx/1.txt
@@ -0,0 +1,19 @@
1
+exec git init .
2
3
+exec forge devx ./Developer.md run-some-command
4
+cmp stdout expect.txt
5
6
+-- Developer.md --
7
+# My cool dev docs
8
9
+### Run Some Command !!
10
11
+``` sh
12
+ echo "should run this command (1)"
13
+```
14
15
16
+ echo "should not run this command (1)"
17
18
+-- expect.txt --
19
+should run this command (1)
0 commit comments