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

Set TestData object to allow more tests to run #474

Merged
merged 25 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
fix testName property for jsTestName function
  • Loading branch information
b1ron committed Jun 6, 2023
commit f549f84472137139fc669514240dfb4a754e8e38
2 changes: 1 addition & 1 deletion internal/jstest/jstest.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func runCommand(dir, command string, args ...string) ([]byte, error) {
eb.WriteRune(' ')
f := filepath.Base(args[len(args)-1])
AlekSi marked this conversation as resolved.
Show resolved Hide resolved
testName := strings.TrimSuffix(f, filepath.Ext(f))
eb.WriteString(fmt.Sprintf("TestData.jsTestName = '%s';", testName))
eb.WriteString(fmt.Sprintf("TestData.testName = '%s';", testName))
AlekSi marked this conversation as resolved.
Show resolved Hide resolved

args = append([]string{"--verbose", "--norc", "mongodb://host.docker.internal:27017/", "--eval", eb.String()}, args...)
dockerArgs := append([]string{"compose", "run", "-T", "--rm", command}, args...)
Expand Down