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.

3.1.0-RC1 failing to discover all tests

See original GitHub issue

Running under maven, I have a test suite with 37 tests across 14 classes (all green when running under 3.0.4). When upgrading to 3.1.0-RC1 that drops to 9 tests in 1 class (again all green).

The class that is selected seems somewhat arbitrary (it’s not the first or last lexicographically, deepest of shallowest by package depth, etc) but it is consistent (it’s always the same class across multiple tests).

I suspect (haven’t confirmed) this results from the change introduced in KotlinTestEngine via https://github.com/kotlintest/kotlintest/commit/fefe597ea599d2e96261df93d559e786602b33e2#diff-461861632c0613d6e9375e66399a366d - where the result of discover() is cached once per engine, but that caching doesn’t take into account whether parameters provided to discover() have changed between calls.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
martinlaucommented, Apr 23, 2018

All good now, thanks @sksamuel.

0reactions
sksamuelcommented, Apr 23, 2018

Do you want to try 3.1.0-RC2

Of course 3.0.6 is available if you don’t want to use snapshots.

@elect86 @martinlau

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add 3.1.0 to PyPI? · Issue #504 · hardbyte/python-can - GitHub
Right now the PyPI repo only has 3.1.0rc1, which requires the --pre flag to be installed. I have a project that requires the...
Read more >
Why unit testing with Spring 3.1 WebMvcConfig fails?
As Garcia said, this bug is fixed in Spring 3.2.0.RC1. Just add @WebAppConfiguration annotation in the test class. @RunWith(SpringJUnit4ClassRunner.class) @ ...
Read more >
org.neo4j:neo4j-cypher 3.1.0-RC1 vulnerabilities | Snyk
Affected versions of this package are vulnerable to Privilege Escalation. A failure in resetting the security context in some transaction actions in Neo4j...
Read more >
#4781 (winnie and windows failures on raster) – PostGIS
I should note I'm having similar issue to winnie with failing raster tests. Both of us are running GDAL 3.2.0 RC1. Seemed to...
Read more >
Click House v1.1.54322-testing Release - GitClear
... Released with v1.1.54322-testing. Fix failing test because of Timezone difference. ... ActiveRecord#serialize method and Ruby 1.9.x / Rails 3.1.0.rc1.
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