Ilya Kirillov
75331b3448
FIR IDE: abstract low-level-api from dependency on idea
2021-06-20 22:07:11 +02:00
Ilya Kirillov
7d351ca6b1
FIR IDE: add possibility to have different testdata for fir & fe10 keyword tests
2021-06-03 19:38:39 +03:00
Abduqodiri Qurbonzoda
40d1849f33
Migrate compiler, idea and others to new case conversion api
2021-04-08 03:22:02 +03:00
Dmitriy Novozhilov
e742af5444
[Test] Run fir diagnostics tests with light tree in sequential mode
...
In parallel mode many tests are failing so it's temporary workaround
2021-01-15 11:16:28 +03:00
Dmitriy Novozhilov
3c2079c926
[Test] Compute target backend in test generator automatically using reflection
2021-01-12 18:35:16 +03:00
Dmitriy Novozhilov
d15c7861b2
[TEST] Invert dependency between :test-generator and :tests-common modules
...
This is needed to provide ability for declaring new implementations of
test generators, based on existing infrastructure, which won't add
dependency on :compiler:tests-common
Also this commit removes implicit dependency on :compiler:tests-common
from :compiler:tests-common-new
2020-12-16 19:52:29 +03:00
Dmitriy Novozhilov
9e2d691425
[TEST] Move utils for checking all files presented to KtTestUtil
...
This is needed to remove dependency on :tests-common from module
with abstract test generators
2020-12-16 19:52:27 +03:00
Dmitriy Novozhilov
64ce307f7f
[TEST] Drop mechanism for muting tests with .mute files
...
This mechanism is deprecated and replaced with muting in database (.csv files)
2020-12-16 19:52:27 +03:00
Dmitriy Novozhilov
32fda13ef9
[TEST] Implement test generators for junit 5 based tests
2020-12-16 19:52:23 +03:00
Dmitriy Novozhilov
c8f3a4802e
[TEST] Introduce test-infrastructure-utils module and extract common test utilities here
2020-12-16 19:52:22 +03:00
Dmitriy Novozhilov
23c088afd6
[TEST-GEN] Reorganize package structure in :generators:test-generator module
2020-12-16 19:52:20 +03:00
Dmitriy Novozhilov
380e8a3814
[TEST-GEN] Extract run of TestGenerator to top of test generation DSL
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
2a73aaba4d
[TEST-GEN] Move all generation data to TestGroup.TestClass
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
c51ea6b142
[TEST-GEN] Create abstract TestGenerator and move current generator logic to TestGeneratorImpl
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
d45fb4dfd8
[TEST-GEN] Extract logic of generating test methods into separate abstraction MethodGenerator
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
2acbe96f15
[TEST-GEN] Convert Test Generation DSL classes from java to kotlin
2020-12-16 19:52:19 +03:00
Dmitriy Novozhilov
31bccb4fb0
[TEST-GEN] Rename .java to .kt
2020-12-16 19:52:18 +03:00
Dmitriy Novozhilov
580d2ed693
[TEST-GEN] Add some comments to TestGenerationDSL
2020-12-16 19:52:18 +03:00
Dmitriy Novozhilov
8c4b7ad1e1
[TEST] Drop generating tests for coroutines of Kotlin 1.2
2020-12-10 01:31:01 +03:00
Dmitriy Novozhilov
6a9504f26a
[FIR-TEST] Add coroutines diagnostic tests from old FE to FIR test suite
2020-06-29 12:19:02 +03:00
Vladimir Dolzhenko
9319c4c96e
DryRun mode for GenerateTests is added
...
Relates to #KTI-17
2020-06-08 19:05:10 +00:00
Ilya Gorbunov
cef81e11b7
Do not generate JS tests for experimental coroutines support
...
#KT-36083
2020-01-29 09:12:40 +03:00
Ilya Gorbunov
7ec04a1bf9
generators: extract OperationsMap generator to a separate source set
...
Refactor generators so that OperationsMapGenerator is in its own
source set with minimal dependencies.
2020-01-22 06:16:56 +03:00
Ilya Gorbunov
2251c27167
J2K GeneratorsFileUtil
2020-01-22 06:04:38 +03:00
Ilya Gorbunov
d64ec71205
J2K GeneratorsFileUtil: Rename .java to .kt
2020-01-22 06:04:38 +03:00
Dmitriy Novozhilov
5b1f96ba1b
[TEST] Add ability to exclude some testdata with pattern in test generator
2019-12-12 16:11:42 +03:00
Alexander Udalov
ce09be3f59
Add TargetBackend.isIR, simplify JVM IR test configuration
2019-11-11 12:10:29 +01:00
Nikolay Krasko
e1a5a55972
Refactoring: remove ownImports method
2019-10-23 12:49:49 +03:00
Nikolay Krasko
28abfe6dfa
Avoid generating irrelevant imports in test classes
...
Now methods can request generating additional imports.
2019-10-23 12:49:47 +03:00
Nikolay Krasko
0c5dc507e9
Allow to add additional annotations to generated classes
2019-10-23 12:49:47 +03:00
Nikolay Krasko
98ac2af402
Use TargetBackend.ANY as default parameter and migrate to more generic runTest method
2019-10-23 12:49:47 +03:00
Jiaxiang Chen
74e4e8b18e
enable test generator to generate tests using JUnit 4 infrastructure
2019-10-05 10:41:11 +02:00
Georgy Bronnikov
7ede26e8f4
IrCompileKotlinAgainstInlineKotlin tests
2019-09-06 09:19:57 +03:00
Dmitry Gridin
02fd137cec
SimpleTestClassModel: add deep field
2019-08-27 17:26:08 +07:00
Dmitry Gridin
65ce4aed1a
TestGenerationDSL: cleanup code
2019-08-27 17:26:07 +07:00
Ilmir Usmanov
60cbf0696d
Do not generate tests with experimental coroutines on JVM_IR backend
...
Enable working tests.
2019-06-25 16:30:01 +03:00
Vyacheslav Gerasimov
5a39c637c2
Build: Fix intellij dependency leak from ir tree module
2019-06-13 21:03:55 +03:00
nikita.movshin
86672df107
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update TestGenerator.kt
2019-04-23 20:09: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
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Vyacheslav Gerasimov
f58acbeef5
Build: implement useBootstrapStdlib flag
...
Excludes stdlib projects from build and uses bootstrap stdlib artifacts
#KT-29205
2019-01-21 21:09:40 +03:00
Roman Artemev
c4ddf2e9ae
Enable release coroutine tests in JS IR
2018-09-17 14:52:44 +03:00
Ilya Gorbunov
a18770fbbb
Remove projectDist dependency helper usages
...
Use default configuration dependencies instead of projectDist ones.
2018-09-12 06:05:05 +03:00
Anton Bannykh
0579b52d6b
JS: enabled codegen box tests for release coroutines
2018-07-12 14:18:34 +03:00
Denis Zharkov
820506d9c6
Fix tests after new Continuation API support
...
#KT-24863 Fixed
2018-07-09 15:27:19 +03:00
Roman Artemev
c887b88ed9
Fix coroutine test generator
2018-07-02 15:35:02 +03:00
Anton Bannykh
1e169b0838
JS_IR: add common codegen box tests (same as for old backend)
2018-06-09 19:15:38 +03:00
Ilmir Usmanov
f60787d57c
Move coroutines to kotlin.coroutines package: tests
...
Introduce COMMON_COROUTINES_TEST directive.
Every test with this directive is run twice: one time with
language version 1.2 and kotlin.coroutines.experimental package
and the other time with language version 1.3 and kotlin.coroutines
package. Each run is a separate method: with suffixes _1_2 and _1_3
respectively.
However, since codegen of release coroutines is not supported in JS
backend, we generate only one method: with suffix _1_2.
#KT-23362
2018-04-23 21:51:59 +03:00
Zalim Bashorov
ad2ea8f999
Remove IGNORE_BACKEND_WITHOUT_CHECK and introduce DONT_RUN_GENERATED_CODE
...
Support DONT_RUN_GENERATED_CODE in JS Box tests.
IGNORE_BACKEND_WITHOUT_CHECK is removed because of
it's often wrongly used and in most cases can be
replaced with IGNORE_BACKEND or DONT_RUN_GENERATED_CODE
or with combination of them.
2018-04-19 13:17:28 +03:00
Zalim Bashorov
a63b2e1bbd
Some changes in test generating infrastructure:
...
* add separate run function for each test class to simplify and deduplicate generated code
* move the code that process IGNORE_BACKEND directive to the separate function, outside of generated code.
** it reduces size and complexity of a generated code
** it allows to mute and unmute tests w/o regenerate tests
* add an ability to generate IGNORE_BACKEND directive automatically, it's disabled by default
* add an ability to remove IGNORE_BACKEND directive automatically, it's enabled by default
* remove whitelists
2018-04-19 13:17:22 +03:00