Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Command #236

Merged
merged 31 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ce39427
spiked format command
matthewnitschke-wk Apr 11, 2024
0454aa5
working implementation of the test command
matthewnitschke-wk Apr 11, 2024
0a4a2ca
better implementation
matthewnitschke-wk Apr 12, 2024
cf625c3
better implementation
matthewnitschke-wk Apr 12, 2024
ba45ecd
iterations on test command
matthewnitschke-wk Apr 12, 2024
611e3b6
implemented tests for test command
matthewnitschke-wk Apr 13, 2024
3538c23
implemented multiline infastructure and diagnostics test cases
matthewnitschke-wk Apr 13, 2024
3d0c328
improved test output
matthewnitschke-wk Apr 15, 2024
77cdf53
added tests and fixed broken implementations of multiline attribute p…
matthewnitschke-wk Apr 21, 2024
3f8abb9
updated documentation
matthewnitschke-wk Apr 21, 2024
4dee2ec
added documentation for the test wildcard
matthewnitschke-wk Apr 21, 2024
b6528a5
few improvements from initial review
matthewnitschke-wk Apr 22, 2024
7f94917
merged master
matthewnitschke-wk Sep 15, 2024
30dda1a
bumped golang version and updated test_command documentation
matthewnitschke-wk Sep 15, 2024
005eba9
updated documentation for test_command
matthewnitschke-wk Sep 15, 2024
b1f45f7
implemented reprolang tests
matthewnitschke-wk Sep 15, 2024
ff37e14
ran prettier
matthewnitschke-wk Sep 15, 2024
d87fc95
resolved failed unit test
matthewnitschke-wk Sep 15, 2024
9efd41f
resolved markdown test
matthewnitschke-wk Sep 15, 2024
7c64cf0
removed accidentally committed binary
matthewnitschke-wk Sep 15, 2024
7b1bdb3
Clean up test code a little bit
varungandhi-src Sep 26, 2024
a5e0616
Snapshot test the test command outputs
varungandhi-src Sep 26, 2024
7ea45bf
Check that there aren't any unused test files
varungandhi-src Sep 26, 2024
b3ea6fd
Add more helpful docs
varungandhi-src Sep 26, 2024
d223ba1
Put test subcommand below stats
varungandhi-src Sep 26, 2024
58b5af4
Run prettier
varungandhi-src Sep 26, 2024
2b124af
More compact initialization
varungandhi-src Sep 26, 2024
1f328be
Add a few more assertions
varungandhi-src Sep 26, 2024
d254ed6
Minor tweaks to syntax reference
varungandhi-src Sep 26, 2024
e221ec6
Downgrade back to Go 1.20.14
varungandhi-src Sep 26, 2024
7429540
Run prettier
varungandhi-src Sep 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion cmd/scip/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ func commands() []*cli.Command {
lint := lintCommand()
print := printCommand()
snapshot := snapshotCommand()
test := testCommand()
stats := statsCommand()
return []*cli.Command{&convert, &lint, &print, &snapshot, &stats}
return []*cli.Command{&convert, &lint, &print, &snapshot, &test, &stats}
}

//go:embed version.txt
Expand Down Expand Up @@ -75,6 +76,15 @@ func fromFlag(storage *string) *cli.StringFlag {
}
}

func commentSyntaxFlag(storage *string) *cli.StringFlag {
return &cli.StringFlag{
Name: "comment-syntax",
Usage: "Comment syntax to use for snapshot files",
Destination: storage,
Value: "//",
}
}

func projectRootFlag(storage *string) *cli.StringFlag {
return &cli.StringFlag{
Name: "project-root",
Expand Down
Binary file added cmd/scip/scip
Binary file not shown.
7 changes: 1 addition & 6 deletions cmd/scip/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@ and symbol information.`,
Destination: &snapshotFlags.strict,
Value: true,
},
&cli.StringFlag{
Name: "comment-syntax",
Usage: "Comment syntax to use for snapshot files",
Destination: &snapshotFlags.commentSyntax,
Value: "//",
},
commentSyntaxFlag(&snapshotFlags.commentSyntax),
},
Action: func(c *cli.Context) error {
return snapshotMain(snapshotFlags)
Expand Down
Loading
Loading