Ilya Gorbunov
66639d37ec
[kotlin-test] Explicit public visibility and return types
2023-11-17 17:20:51 +00:00
Ilya Gorbunov
ca99fc4fed
Make more lambda-taking functions in kotlin-test inline-only
...
So that the lambda can contain non-local control flow, such as suspend
calls. Inline-only helps preserving line numbers in the failed assertion
stack traces.
KT-44717
2021-03-10 12:15:45 +03:00
Ilya Gorbunov
7632910ffd
Drop deprecated CollectionAssertions.kt
...
Remove incorrect import from callByWithEmptyVarArg test
2020-06-22 12:29:25 +03:00
Ilya Gorbunov
96ed87d81b
assertFailsWith: set unexpected exception as a cause of assertion error
...
#KT-23514
2020-03-31 13:37:03 +03:00
Ilya Gorbunov
2bb36899da
Introduce 'fail' method to throw AssertionError with cause
...
#KT-37804
2020-03-31 13:37:03 +03:00
Ilya Gorbunov
043eddb432
Cleanup: use effects introduced by contracts of assert* functions
2019-12-28 02:51:56 +03:00
Ilya Gorbunov
a55563f5ec
Docs: suppress docs for newly introduced hidden API
2019-06-15 16:37:44 +03:00
Ilya Gorbunov
6632cf5b1d
Add hidden methods to keep binary compatibility in kotlin-test for JVM
2019-05-21 18:53:52 +03:00
Ilya Gorbunov
22694fa6b0
Make assertFails(With) inline-only functions
...
So that the lambda passed to these functions can capture suspend
function calls.
#KT-31194 Fixed
2019-05-21 18:53:52 +03:00
Ilya Gorbunov
18f9b20610
Remove internal visibility suppressions in kotlin.test
...
Internal visibility works fine in MPP, so they are no longer required.
2019-05-15 06:18:27 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Dmitry Gridin
3bed360c98
Fix "Should be replaced with Kotlin function" warnings
2019-04-18 15:28:52 +07:00
Pavel Punegov
1c4ecd287d
DefaultAsserter object. Add function to replace constructor invoke.
2019-01-11 17:38:58 +03:00
Ilya Gorbunov
efa7bf0c37
Unify kotlin.test docs
2018-10-23 22:21:25 +03:00
Piotr Krzeminski
3c46bb9d03
kotlin-test: Add documentation for value returned by assertFailsWith
...
A follow-up after https://youtrack.jetbrains.com/issue/KT-27418
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-10-23 22:21:25 +03:00
Ilya Gorbunov
21b71f3bb1
Clarify the purpose of the message parameter of assertFailsWith
...
#KT-22869 Fixed
2018-10-01 18:03:23 +03:00
Ilya Gorbunov
f1c3d8b860
Raise deprecation level for kotlin.test collection assertions
...
#KT-21703
2018-09-11 18:15:03 +03:00
Ilya Gorbunov
d9d7b87fd9
Reformat kotlin.test library
2018-05-10 16:27:15 +03:00
Ilya Gorbunov
2e12834b6a
Update copyrights in kotlin.test library
...
Change line number in StackTraceJVMTest due to the added copyright
2018-04-26 21:57:50 +03:00
Alexander Udalov
2d41c7d462
Add module-info.java for standard Kotlin libraries
...
Using the new multi-release jar feature, store compiled
module-info.class files into META-INF/versions/9 instead of the artifact
root. Hopefully, this will break fewer tools which do not support
module-info.class files because any sane tool should not do anything
with files in META-INF because before Java 9 that directory only
contained resources.
Upgrade some Maven plugins to newer versions which do not fail on
module-info.class files
#KT-21266 In Progress
2018-04-03 21:22:14 +02:00
Ilya Gorbunov
5e3edf4bd7
Select the asserter based on test framework presence in classpath
...
Simplify asserter lookup: enumerate all AsserterContributors when
the file class with lookupAsserter function is initialized.
It's assumed that AsserterContributor initialization should be fast.
#KT-21154 Fixed
2018-02-12 07:59:54 +03:00
Ilya Gorbunov
f002493218
Multiplatform test annotations
...
Actual annotations are provided in kotlin-test-junit on JVM side
and in kotlin-test-js on JS side.
#KT-19696
2017-10-15 17:40:53 +03:00
Stanislav Erokhin
91a99b4726
Migrate impl to actual in libraries projects
2017-09-16 19:47:46 +03:00
Ilya Gorbunov
2c32bae5ca
kotlin-test: Make assertFailsWith<reified T: Throwable>() common
2017-04-21 20:52:14 +03:00
Ilya Gorbunov
307b132015
kotlin-test: Make assertFailsWith(KClass<T: Throwable>) common
2017-04-21 20:52:12 +03:00
Ilya Gorbunov
ec8ead754f
Run kotlin-test-js tests with kotlin-stdlib-js
...
Rework kotlin-test common tests to make them runnable with qunit.
Change the way how asserter is overridden in js box tests.
Minor: remove unneeded test configs
2017-04-21 20:51:07 +03:00
Ilya Gorbunov
f009e0c665
kotlin-test: Make 'todo { }' function common
2017-04-21 20:50:59 +03:00
Ilya Gorbunov
5aff64078c
Drop helper functions and use ones from stdlib instead.
2017-04-08 08:32:03 +03:00
Ilya Gorbunov
e119f3a042
Make kotlin-test tests compile as tests for multiplatform project
...
Also remove utils not needed anymore.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
f8ebe5593f
Make assertFailsWith common
...
Because headers cannot have default parameters.
This leads to less effective implementation in JVM.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
609355a311
Provide kotlin.AssertionError in kotlin-stdlib-common
...
Remove related workarounds from kotlin-test-common
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
19dd7ee09e
Build kotlin-test after kotlin-stdlib, build kotlin-test sources with kotlin-stdlib tests again
2017-01-24 22:04:46 +03:00
Sergey Mashkov
98075c17c9
kotlin-test: extract from JS library, convert to multiplatform
2017-01-23 15:43:02 +03:00
Sergey Mashkov
a5b098c4a7
kotlin.test: Rename jvm module to junit
2015-12-18 22:16:04 +03:00
Sergey Mashkov
1867abbbe7
Add kotlin.test library
2015-12-18 22:16:04 +03:00