Dmitriy Dolovov
5f9bf1611e
[Native][tests] Re-organize packages in 'native.tests' module
2021-11-18 16:12:17 +03:00
Dmitriy Dolovov
e2d68fd239
[Native][tests] Make AbstractRunner.AbstractRun to be fun interface
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov
fec63a5f1c
[Native][tests] Use a separate directory per every test module
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov
358f1216ad
[Native][tests] Fix multimodule test samples to avoid @Test functions in modules compiled to KLIBs
...
Such functions are not included into the test-runner generated during compilation of the main module.
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov
200d92c287
[Native][tests] Handle unexpected errors during test run
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov
d13b4bfb25
[Native][tests] Minor. Simplify verification of expectations in LocalTestRunner
2021-11-18 13:29:10 +03:00
Dmitriy Dolovov
0f77c078e8
[Native][tests] Introduce TestRunner that knows how exactly to run an arbitrary test
2021-11-18 13:29:10 +03:00
Dmitry Petrov
30ceb49442
JVM_IR KT-48945 generate special bridge with unsubstituted signature
2021-11-17 17:44:01 +03:00
Dmitriy Novozhilov
8cdfec7c40
Regenerate tests
2021-11-17 09:43:27 +03:00
Dmitriy Dolovov
7ed3941580
[Native][tests] Update generated tests
2021-11-15 18:24:58 +03:00
Dmitriy Dolovov
503f159f4d
[Native] External tests: Preserve original line offsets
2021-11-15 18:15:43 +03:00
Dmitriy Dolovov
cc667189ec
[Native] External tests: Don't clean up test directives
...
This does not make sense anymore since external test data files are patched during test execution on the fly.
2021-11-15 18:15:43 +03:00
Dmitriy Dolovov
61b8fb8fc2
[Native][tests] Allow overriding test properties via Gradle properties
2021-11-15 18:15:43 +03:00
Dmitriy Dolovov
a029b50755
[Native][tests] Enable codegen_box_callableReference/genericConstructorReference.kt
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
4900aa673b
[Native][tests] Fix formatting of error message about failed test
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
9c70d5088c
[Native][tests] Don't warn when committed TestFile is committed again
...
Actually, there is nothing wrong with calling commit() again: Some TestFiles are created as uncommitted and require calling commit(), while others are created as committed from the very beginning.
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
407e82adbb
[Native][tests] Minor. Make computePackageName() a bit more comprehensive
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
e30f33b18d
[Native][tests] Minor. Prefer to use raw string literals for better readability
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
e5bb16c750
[Native][tests] Minor. Comments formatted
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
24f00f8fda
[Native][tests] Warn when committed TestFile is committed again
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
c014daf1b2
[Native][tests] Minor. Simplify StandardTestCaseGroupProvider.runForFirstMeaningfulStatement()
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
0e1c60d5ab
[Native][tests] Split TestExecutable -> TestExecutable/TestRun (part 2)
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
55a2d5cb4a
[Native][tests] Minor. Rename internal functions
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
fb0dda5a24
[Native][tests] Use ThreadSafeCache instead of ConcurrentHashMap
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
c219e53634
[Native][tests] Minor. Prefer using JUnit assertions over Kotlin checks
2021-11-15 18:15:42 +03:00
Dmitriy Dolovov
4bc48ea466
[Native][tests] Split TestExecutable into TestExecutable and TestRun
...
The latter keeps the list of run parameters now. It's assumed that the same TestExecutable instance can be run with different TestRuns.
2021-11-15 18:15:41 +03:00
Dmitriy Dolovov
6cef8c1f91
[Native][tests] Minor. Drop unused function
2021-11-15 18:15:41 +03:00
Dmitriy Dolovov
ce4d2093cc
[Native][tests] Use the single 'generateTests' task
2021-11-15 18:15:41 +03:00
Dmitriy Dolovov
54b09810f0
[Native] Rename :native:tests-blackbox.native to :native:native.tests
2021-11-15 18:15:41 +03:00