Robert Burke created BEAM-6148:
----------------------------------

             Summary: Support Go "Unit" tests on arbitrary runners
                 Key: BEAM-6148
                 URL: https://issues.apache.org/jira/browse/BEAM-6148
             Project: Beam
          Issue Type: New Feature
          Components: sdk-go
            Reporter: Robert Burke
            Assignee: Robert Burke


There's no clear path to testing pipelines on runners other than the direct 
runner. It should be possibly to "redirect" tests to use a runner of choice. 
This would enable more "testy" ValidatesRunner tests in Go.

 

In particular, users should need to at least _ import the runner they want, and 
be able to set a flag.

The tricky bit is ensuring beam.Init is called so that each individual test can 
convert to WorkerMode when it's spun up as a SDK harness. This can be done by 
having a TestMain. 

ptest should provide convenience functions to help with this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to