AmitKumarDas / fun-with-programming

ABC - Always Be Coding
2 stars 2 forks source link

r-0023 #72

Closed AmitKumarDas closed 1 year ago

AmitKumarDas commented 3 years ago
// tags: 3-way merge, server side apply
//
// https://github.com/banzaicloud/k8s-objectmatcher
AmitKumarDas commented 3 years ago
// [tags]
// - testing, main_test, integration testing, flags, sub module,
// - declarative & structured, declarative & idiomatic
//
// [til]
// - test struct, test context, test struct as builder, pass functions as args
// - readable constructor functions, custom setup ~ k8s native setup
// - simple abstraction, full control, 2 files main_test.go & integration_test.go rules all,
// - testing.Verbose(), t.Skip()
//
// [idea]
// - use nested go module for e2e as well as integration tests
// - 1 file for 1 e2e test case i.e. e2e_*_test.go, 
// - common.go for common abstractions
// - type K8sTest struct, type K8sTestContext struct
// - NewK8sAssert, NewTestAssertEventually ~ assert
// - NewTestApplyAssert, NewTestApplyAssertEventually ~ apply & assert
// - NewTestCreateAssert, NewTestCreateAssertEventually ~ create & assert
// - complex assertions etc. via builder methods
//
// https://github.com/banzaicloud/k8s-objectmatcher/tree/master/tests
AmitKumarDas commented 3 years ago
// [til]
// - module within module
// - tests as a different module
// - tests module uses source code module via ../
module github.com/banzaicloud/k8s-objectmatcher/tests

go 1.13

require (
    blah blah blah  
)

replace github.com/banzaicloud/k8s-objectmatcher => ../