diff options
Diffstat (limited to 'adapters.go')
-rw-r--r-- | adapters.go | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/adapters.go b/adapters.go index 7c7dd0b..8419c8b 100644 --- a/adapters.go +++ b/adapters.go @@ -5,24 +5,12 @@ package planr // Test cases matching adapter configurations will be // fed into the adapter interface type Adapter interface { - - /* CONFIGURATION HOOKS */ - + // Config() AdapterConfig - /* BUILD CYCLE */ + // Called once to preform expensive code generation + Build(testCase []*TestCase) - // Called once at the beginning of the build process - InitializeBuild() - // Called once with every registered test case - // Can access configuration directly - Build(testCase TestCase) - // Called once after all builds - FinalizeBuild() - // Called pre-evaluate - Make() - // Called once per test case after FinalizeBuild - Evaluate(testCase TestCase) TestResult - // Called once after each test has been evaluated - Cleanup() + // Called every time source changes + Evaluate(testCase []*TestCase) } |