Thanks!

On 10 Sep 2015 at 19:36:38, Rob Miller ([email protected]) wrote:

Once the GOPATH environment is activated (by sourcing `env.sh`, possibly via 
`build.sh`) then `go test` will work as normal to run the tests from an 
individual go package. To run the tests for all of the Heka-related packages 
(again, only after the GOPATH is correctly set), you can use `make test` from 
within the build folder.  

-r  


On 09/10/2015 07:35 AM, Timur Batyrshin wrote:  
> Hi Rob,  
>  
> Thanks, I’ll take a look!  
>  
> What is the supposed way to run specs?  
> Is it “go test” as described in gospec’s docs or should they be run in  
> some other way?  
>  
>  
> Thanks,  
> Timur  
>  
> On 8 Sep 2015 at 20:09:47, Rob Miller ([email protected]  
> <mailto:[email protected]>) wrote:  
>  
> > You can see examples of sandbox plugin unit tests we've written here:  
> >  
> > -  
> > https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_decoders_test.go
> >   
> >  
> > -  
> > https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_encoders_test.go
> >   
> >  
> > -  
> > https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_filters_test.go
> >   
> >  
> >  
> > The first tests in each of those files are exercising the core plugin  
> > functionality, but if you scroll down you'll find tests for specific  
> > plugin implementations, e.g.:  
> >  
> > -  
> > https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_decoders_test.go#L301
> >   
> >  
> > -  
> > https://github.com/mozilla-services/heka/blob/versions/0.10/sandbox/plugins/sandbox_decoders_test.go#L373
> >   
> >  
> >  
> > Hope this helps,  
> >  
> > -r  
> >  
> >  
> > On 09/08/2015 06:53 AM, Timur Batyrshin wrote:  
> > > Hi,  
> > >  
> > > Is there a recommended way to write unit tests for lua sandboxes?  
> > > I think I haven’t seen any references to that in docs and google told me  
> > > nothing about that too.  
> > >  
> > >  
> > > Thanks,  
> > > Timur  
> > >  
> > >  
> > >  
> > > _______________________________________________  
> > > Heka mailing list  
> > > [email protected]  
> > > https://mail.mozilla.org/listinfo/heka  
> > >  
> >  

_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to