
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
github.com/airenas/google-test-runner
It is a simple tools to run many googletest suits (separate executables) and collect overall statistics.
C++ googletest is great lib to test C++ code. But I run into a problem how to run many googletest executables locally and collect an overall statistics. Lets say tests are fast, but initialization for a suite takes some time. For exammple I have 20 test case suits. Initialization (::testing::Test::SetUpTestCase) for each suit takes about 1 sec. And I have about 500 test.
Ctest -j4
does the thing. But it runs every test separatelly, invokes ::testing::Test::SetUpTestCase for each test. It ends up to 500 sec/4 (number of processes) = 125 sec.
I can run all tests using find . -type f -name '*_test' -exec bash -c {} ';'
. But it does not show failures at the end.
Before: You must have go >= 1.12 installed.
Clone the repo git clone https://github.com/airenas/google-test-runner
Build cd google-test-runner/cmd/google-test-runner && go build
Copy executable somewhere on your path sudo cp google-test-runner /usr/local/bin
Run google-test-runner -h
for a help.
Go to a dir containing googletest executables inside
Lets say find . -type f -name '*_test'
- returns googletests with relative paths
Invoke the tests:
find . -type f -name '*_test' | google-test-runner
google-test-runner -f ./**/*_test
google-test-runner -o f -f ./**/*_test
google-test-runner -j 1 -s -f ./**/*_test
Airenas Vaičiūnas
Copyright © 2019, Airenas Vaičiūnas.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.