Skip to content

Commit 4fd4d5a

Browse files
committed
Allowing capture of stderr, updating expecations
1 parent 5a7f6cf commit 4fd4d5a

File tree

14 files changed

+65
-1
lines changed

14 files changed

+65
-1
lines changed

.nextmv/readme/main_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const configFile = "workflow-configuration.yml"
2828
type ScriptConfig struct {
2929
Name string `yaml:"name"`
3030
Silent bool `yaml:"silent"`
31+
StdErr bool `yaml:"stderr"`
3132
Skip bool `yaml:"skip"`
3233
}
3334

@@ -129,7 +130,7 @@ func TestGolden(t *testing.T) {
129130
testName,
130131
golden.BashConfig{
131132
DisplayStdout: !scriptConfig.Silent,
132-
DisplayStderr: !scriptConfig.Silent,
133+
DisplayStderr: scriptConfig.StdErr,
133134
WorkingDir: "../../" + app,
134135
OutputProcessConfig: golden.OutputProcessConfig{
135136
VolatileRegexReplacements: replacements,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Solving knapsack problem:
2+
- items: 11
3+
- capacity: 50
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Best value flow for project to worker assignment:
2+
- projects: 5
3+
- workers: 3
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Solving demand forecasting problem:
2+
- demands: 7300
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Solving knapsack problem:
2+
- items: 11
3+
- capacity: 50
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Solving region allocation:
2+
- regions: 189
3+
- hubs: 6
4+
- duration: 30 seconds
5+
- provider: scip
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Solving routing problem:
2+
- vehicles: 2
3+
- stops: 10
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Solving shift-assignment:
2+
- shifts: 4
3+
- workers: 5
4+
- rules: 1
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Solving shift-planning:
2+
- shifts-templates: 2
3+
- demands: 3
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Solving knapsack problem:
2+
- items: 11
3+
- capacity: 50

0 commit comments

Comments
 (0)