Polymer / tools

Polymer Tools Monorepo
BSD 3-Clause "New" or "Revised" License
430 stars 200 forks source link

progress has incorrect total (3x number of test suites) #2955

Open hadfieldn opened 9 years ago

hadfieldn commented 9 years ago

The progress ring widget that appears at the top right-hand corner of the page when running web-component-tester seems to show the total number of tests as always 3x the number of test suites, rather than the actual total of tests.

Is this a known issue, or this there something that I can do to get the correct total to show?

(I posted a screenshot and some additional details at StackOverflow.)

Thanks!

hadfieldn commented 9 years ago

If it would be helpful I could post a sample repo to GitHub reproducing the problem, but I'm thinking this is probably a known issue already. If not just let me know.

OutsourcedGuru commented 8 years ago

I can confirm this on my Google Polymer Starter Kit out-of-the-box. The progress meter expects there to be three times more tests than reality. The culprit is line 1195 in browser.js: // Until a suite has loaded, we assume this many tests in it. var ESTIMATED_TESTS_PER_SUITE = 3;

If I manually edit this to 1 it works as expected. I assume that the suite never loads within the timeframe of the running tests or something. Note that each of my three test files only has one each test in them.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.