Get Chromium browser_tests working
See original GitHub issueRunning npm run test -- browser_tests
currently ends in a compiler error preventing any of the tests to run.
This means I can’t verify Chromium test are broken with other changes such as: https://github.com/brave/brave-browser/issues/8184
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Browser Tests - The Chromium Projects
Browser tests are the framework used for integration tests of Chrome. As the name implies, they run inside the browser process. Background. In...
Read more >Testing in Chromium - docs/testing/testing_in_chromium.md
Browser Tests is built on top of gtest, and it is used to write integration tests and e2e tests in Chromium. Web Tests...
Read more >Get Chromium unit_tests working · Issue #8376 - GitHub
When running npm run test -- unit_tests I get the following: > brave@1.6.34 test /home/jonathan/projects/brave-browser > node .
Read more >Test On Edge Chromium Browsers - LambdaTest
With LambdaTest cross browser testing cloud you can test your or locally hosted web pages on different versions of Internet Explorer browsers by...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bsclifton it’s noisy certainly, however the
--filter
flag is useful for running certain tests. I ran the tests for roughly 4 hours. There are about 1k of tests that fail.I’m hoping to chase down the following error lines:
Which account for well over 1k of the console lines.
Similar to what I mentioned in detail in https://github.com/brave/brave-browser/issues/8376#issuecomment-774179252 for the case of getting
unit_tests
building, I’ve started looking into fixing the compilation errors forbrowser_test
as well, which at the moment look very similar to the ones mentioned by @bsclifton in https://github.com/brave/brave-browser/issues/8297#issuecomment-588065370.And the good news is that I just got them building with a very small adjustment in the source overrides for //c/b/renderer_context_menu/render_view_context_menu.h:
And since it’s just such a small change, I’ve repurposed https://github.com/brave/brave-browser/issues/14001 so that it’s not just about fixing the build for
unit_tests
but also forbrowser_tests
and so we have already a small PR that should fix the build of both binaries, check it out here: https://github.com/brave/brave-core/pull/7899I’m going to look next into which browser_tests are failing and which ones we could easily skip in a similar fashion to how I did it for unit_tests in https://github.com/brave/brave-core/pull/7901, but for the time being I thought a heads up was in order.
PTAL to https://github.com/brave/brave-core/pull/7899 when you have a moment, thanks!