question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No document for frontend unit tests

See original GitHub issue

We 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:closed
  • Created 5 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jartcommented, May 15, 2018

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 like bazel 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.

0reactions
wchargincommented, Jan 2, 2020

What @bileschi says is correct. Additionally, all our web test targets have the webtest tag, so you can find them with a bazel query:

$ bazel query 'attr(tags, webtest, tests(//tensorboard/...))'
//tensorboard/webapp:karma_test_chromium-local
//tensorboard/plugins/projector/vz_projector/test:test_chromium
//tensorboard/plugins/hparams/tf_hparams_utils:test_chromium
//tensorboard/plugins/hparams/tf_hparams_scale_and_color_controls:test_chromium
//tensorboard/plugins/hparams/tf_hparams_query_pane:test_chromium
//tensorboard/plugins/hparams/tf_hparams_parallel_coords_plot:test_chromium
//tensorboard/plugins/hparams/tf_hparams_google_analytics_tracker:test_chromium
//tensorboard/plugins/histogram/tf_histogram_dashboard/test:test_chromium
//tensorboard/plugins/graph/tf_graph_common/test:test_chromium
//tensorboard/functionaltests:core_test_chromium
//tensorboard/components/vz_sorting/test:test_chromium
//tensorboard/components/vz_line_chart2/test:test_chromium
//tensorboard/components/tf_tensorboard/test:test_chromium
//tensorboard/components/tf_storage/test:test_chromium
//tensorboard/components/tf_paginated_view/test:test_chromium
//tensorboard/components/tf_color_scale/test:test_chromium
//tensorboard/components/tf_categorization_utils/test:test_chromium
//tensorboard/components/tf_backend/test:test_chromium
//tensorboard/components/experimental/plugin_util/test:test_chromium
//tensorboard/components/experimental/plugin_lib/test:test_chromium
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found