No document for frontend unit tests
See original GitHub issueWe havebazel test tensorboard/...
for python tests, but currently there is no document for how to execute frontend unit tests
.
e.g. how to execute tests under tensorboard/plugins/graph/tf_graph_common/test
or tensorboard/plugins/audio/tf_audio_dashboard/test
etc.
And I thought the BUILD
file under tensorboard/plugins/audio/tf_audio_dashboard/test
will tell Bazel to trigger the test, but from the output I didn’t see this test was executed with bazel test tensorboard/...
.
Any comment or suggestion is appreciated.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Introduction to Front-End unit testing - DEV Community
I've created a project using create-react-app , which comes out-of-the-box with Jest set up. Whatever framework you're using, most of their CLIs ...
Read more >How to Unit Test HTML and Vanilla JavaScript Without a UI ...
Recently I was curious about something: Is it possible to write unit tests for front end code that doesn't use any sort of...
Read more >Unit Test Your JavaScript Code Without a Framework
In this blog post, I have demonstrated how I went about writing unit tests without any framework. We will start by creating two...
Read more >Frontend Unit Testing Best Practices - Meticulous
A guide on some of the best practices for frontend unit testing, including covering libraries like Jest with various code examples.
Read more >It's A (Front-End Testing) Trap! Six Common Testing Pitfalls ...
A test should have not much logic and few to no abstractions at all. This also means you need to be cautious with...
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
Try running
bazel test //tensorboard/functionaltests:core_test
. That should download Chromium and browser test from the command line, but it’s always been flaky. So we sometimes do things likebazel run //tensorboard/components/vz_sorting/test
and open the test html file in the browser, and then open the Chrome console to see if it passed.What @bileschi says is correct. Additionally, all our web test targets have the
webtest
tag, so you can find them with abazel query
: