Skip to content

Commit 13c9d5e

Browse files
committed
Have cli and progress runner display their current version when starting
1 parent d079692 commit 13c9d5e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ var (
2323
// main is the entry point of the coffee machine command line runner
2424
// nolint: revive
2525
func main() {
26+
infoLog.Println("starting coffee machine command line interface", settings.BuildVersion)
2627
if len(os.Args) < 2 {
2728
errorLog.Fatalf("syntax: %s <language-implementation-path>", path.Base(os.Args[0]))
2829
}
2930
langImplPath := os.Args[1]
3031
language := filepath.Base(langImplPath)
3132

32-
infoLog.Println("starting coffee machine process runner", settings.BuildVersion)
3333
infoLog.Println("implementation path is", langImplPath)
3434
infoLog.Println("language implementation is", language)
3535

progress/progress_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
"github.com/murex/gamekit-coffeemachine/progress/iteration3"
3232
"github.com/murex/gamekit-coffeemachine/progress/iteration4"
3333
"github.com/murex/gamekit-coffeemachine/progress/iteration5"
34+
"github.com/murex/gamekit-coffeemachine/settings"
3435
"log"
3536
"os"
3637
"strconv"
@@ -54,11 +55,6 @@ type Context struct {
5455

5556
var ctx Context
5657

57-
// IterationTestRunner provides the interface to be implemented by each iteration test runner
58-
//type IterationTestRunner interface {
59-
// TestMain(p *process.P) func(t *testing.T)
60-
//}
61-
6258
// TestMain is the main function when running go test
6359
func TestMain(m *testing.M) {
6460
setup()
@@ -68,6 +64,7 @@ func TestMain(m *testing.M) {
6864
}
6965

7066
func setup() {
67+
infoLog.Println("starting progress runner", settings.BuildVersion)
7168
proc := startImplementationProcess()
7269
ctx = Context{
7370
process: proc,
@@ -121,6 +118,7 @@ func stopImplementationProcess(proc *process.P) {
121118

122119
// Test_Progress is the entry point for running all tests for all iterations
123120
func Test_Progress(t *testing.T) {
121+
t.Log("progress runner version", settings.BuildVersion)
124122
t.Log("testing implementation progress on coffee machine")
125123
if ctx.iteration == NoIteration {
126124
t.Skipf("skipping progress tests (implementation not ready)")

0 commit comments

Comments
 (0)