Comments (6)
Would it be a breaking change? Is that becausr they'd need to add an
import?
On 16 Jun 2016 21:40, "Christian Helmbold" [email protected] wrote:
Some interfaces exist only to hold concrete methods. In languages like
Java and Scala this is necessary, but Kotlin supports top level functions
https://kotlinlang.org/docs/reference/functions.html#function-scope, so
this code can be slightly reduced by removing the interfaces.The following interfaces could be removed: Inspectors, Eventually,
CollectionMatchers, ExceptionMatchers, IntMatchers, LongMatchers,
MapMatchers, StringMatchers, TypeMatchers. This would be a breaking change.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#33, or mute the thread
https://github.com/notifications/unsubscribe/AAtZGiVW9u2m1kNVKtd52lLgzfKzQ7cGks5qMbSngaJpZM4I3ybP
.
from kotest.
Yes, the code on the user site would have to be changed due to the required imports.
from kotest.
Is there anyway you can inherit imports in Kotlin?
On 16 Jun 2016 21:46, "Christian Helmbold" [email protected] wrote:
Yes, the code on the user site would have to be changed due to the
required imports.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#33 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAtZGnQPYmbDoTZS5QBpxMSqDSOYVFTKks5qMbYogaJpZM4I3ybP
.
from kotest.
At least I'm not aware of such a possibility. But you could place the functions to be inherited in interfaces and add them to the test base class :-D
My idea was to keep the code as clean and idiomatic as possible, but maybe using interfaces here is more convenient for the users.
from kotest.
I only did it as interfaces because I like them to be in scope automatically, and because its quite "scalay". I've been a Scala developer for 5 years at work, and I haven't touched Java since, so a lot of my opinions are influenced by that.
from kotest.
When I was writing this issue, I haven't thought of the convenience aspect. I think it is ok, to just close this ticket.
from kotest.
Related Issues (20)
- Kotest should not remove suffix `()` of `dataTestName`'s result HOT 3
- Single test run fails with`java.lang.NoClassDefFoundError`, but all test for the class are passing HOT 6
- 6.0 Changes Discussion (Including breaking changes) HOT 17
- Stacktrace lost when using custom matcher with `should` HOT 3
- `retry` does not retry all exceptions HOT 1
- `Dispatchers.setMain(coroutineContext[CoroutineDispatcher])` executes coroutines continuously HOT 10
- Kotest 5.8.1 breaks kotest-extensions-allure HOT 3
- Do Kotlin/JS tests run?
- `filterIsInstance()` for `Arb` requires both type arguments compared to stdlib `filterIsInstance()`
- kotest-assertions-ktor: Fix failure message
- `row` toString() considered "unstable" even if all type parameters are clearly stable
- `shouldContain` always matches against `null` map value HOT 2
- Adapt assertion extensions for Collections and Iterables to use bounded types HOT 3
- Lifecycle hooks with mockk do not work properly on `object` and java classes with static functions HOT 12
- kotest-extensions-mockserver v1.3.0 is incompatible with kotest v5.8.1
- Link `table_driven_testing.md` file to `sidebar_label`
- Test names containing line breaks are ignored when run individually
- Support setting retry config via `AbstractProjectConfig` HOT 3
- coroutineTestScope: timeout for TestDispatcher cannot be configured HOT 10
- containExactly* assertions don't respect given verifier HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotest.