run tests for all sub modules

67 views
Skip to first unread message

Vasiliy Tolstov

unread,
Jan 18, 2020, 6:40:39 PM1/18/20
to golan...@googlegroups.com
Hi! I have one repo with multiple packages. For each package i have
dedicated go.mod (this is a requirement because repo is collection of
plugins with many deps).
How to run test for all of them? go test ./... does not run tests for
sub modules. Now i have very ugly thing:
find . -name 'go.mod' , collect all dirs and run go test for all of
them. Is it possible to have something less ugly?

--
Vasiliy Tolstov,
e-mail: v.to...@selfip.ru

Vasiliy Tolstov

unread,
Jan 20, 2020, 6:24:53 AM1/20/20
to golan...@googlegroups.com
So this is impossible with per package modules in one repo?

вс, 19 янв. 2020 г. в 02:39, Vasiliy Tolstov <v.to...@selfip.ru>:
Reply all
Reply to author
Forward
0 new messages