Alexander Udalov
33549362cb
Move compiler/tests-common/{src -> tests}, adjust dependencies
2017-10-31 07:36:45 +01:00
Alexander Udalov
c2276e2ccb
Rename module ':compiler.tests-common' -> ':compiler:tests-common'
2017-10-31 07:36:45 +01:00
Alexey Sedunov
b8fb002a8f
Misc: Update keyword completion test data
...
It reflects top-level lateinit variables available since 1.2
2017-10-18 18:17:50 +03:00
Nikolay Krasko
2634ed15fa
Configure sdk properly in configure Kotlin tests
2017-10-03 16:10:33 +03:00
Nikolay Krasko
166682937f
Copy mock JDK 9 from intellij idea
...
(cherry picked from commit aef9220)
2017-10-03 16:10:33 +03:00
Nikolay Krasko
8aa4b75e1c
Quick fix for module is absent in module-info requirements (KT-20108)
...
#KT-20108 Fixed
2017-10-03 16:10:32 +03:00
Denis Zharkov
12b348ae48
Fix incorrectly configured IDE tests
...
The important changes are in ideaTestUtils.kt:
`configureByFiles` must be called on the relative to testData dir path,
otherwise java files in the project belong to src/idea/testData/.../A.java
instead of src/A.java and can't be found in the root package
New updates in resolution when resolving A() call is now asking whether
<root>.A exists in PsiPackage::getClasses instead of
PsiPackage::findClassByShortName that can find a class even if it's located
in the wrong directory
2017-09-28 14:01:30 +03:00
Mikhail Zarechenskiy
66cb8db12a
Support LANGUAGE_VERSION directive in quick fix tests
2017-09-26 14:49:43 +03:00
Alexander Podkhalyuzin
3f8170d369
Clean idea files generated on the gradle import, add them to .gitignore
2017-09-19 23:58:27 +02:00
Ilya Chernikov
deda50dbbb
Continue switching projects to improved dsl: sourceSets and test running
2017-09-19 21:37:26 +02:00
Ilya Chernikov
61dfb75e0e
Implement Gradle Kotlin DSL build
2017-09-19 21:37:06 +02:00
Mikhail Glukhikh
bf739198aa
Fix regular quick-fix test with multi-platforms required
2017-09-19 17:13:58 +03:00
Mikhail Glukhikh
ef6a00f477
Fix completion tests
2017-09-19 17:13:37 +03:00
Dmitry Jemerov
dd34c67849
Add missing dependencies
2017-09-18 19:23:22 +02:00
Yan Zhulanow
e6171dc4c5
Parcelable: Add quick fixes
2017-09-14 19:36:24 +03:00
Mikhail Glukhikh
3623f581b8
Eliminate a set of warnings, mostly nullability ones
2017-08-18 15:10:27 +03:00
Alexander Udalov
46a01ec131
J2K PathUtil: convert and prettify
2017-07-28 14:11:35 +03:00
Dmitry Jemerov
0e6c9a96c7
Specify library kind when configuring library in tests
2017-07-17 12:09:04 +02:00
Dmitry Jemerov
060b8e0025
ConfigLibraryUtil: J2K
2017-07-17 11:58:57 +02:00
Dmitry Jemerov
921db30c90
ConfigLibraryUtil: rename to .kt
2017-07-17 11:58:57 +02:00
Denis Zharkov
e26c210d69
Support TypeQualifierDefault from JSR 305 for nullability qualifiers
...
#KT-10942 Fixed
2017-07-03 17:55:37 +03:00
Nikolay Krasko
6a5d6854bb
Refactoring: inline implementation into KotlinStdJSProjectDescriptor
2017-06-29 16:56:15 +03:00
Nikolay Krasko
df393e18fe
Configure AbstractInspectionTest with project descriptors
...
Previous implements produced flaky tests when non-js tests were
executed after js.
2017-06-29 16:56:15 +03:00
Alexander Udalov
e32880d9a3
Implement Java 9 module visibility checks
...
In this commit, only IDE tests are added, because we look for module
declarations in the IDE across the whole project, whereas in the
compiler we should do this on the module path only and that requires
separate work (KT-18599) which is done in the following commits.
(The change in Cache.kt is needed so that
JvmModuleAccessibilityChecker.ClassifierUsage, which is an inner class,
would be injected properly.)
#KT-18598 In Progress
#KT-18599 In Progress
2017-06-29 15:59:56 +03:00
Alexander Udalov
8af923c5ff
Refactor MockLibraryUtil and related tests
...
- separate compileLibraryToJar into two public functions, for JVM and JS
- allow to pass any extra options instead of just -Xallow-kotlin-package
- add a bunch of default arguments for the most common cases
2017-06-26 16:22:04 +03:00
Dmitry Jemerov
52cfec5bc1
Add actions for toggling type hints to list of irrelevant actions
...
They are available in many tests and only starting with the 172 branch,
so we ignore them to reduce clutter and branch divergence.
2017-06-13 19:45:39 +02:00
Nikolay Krasko
287443cab9
Add not-null annotation to avoid warnings on getProjectDescriptor()
2017-05-23 18:26:21 +03:00
Alexey Sedunov
e1503d80f2
Test Framework: Move common members to KotlinMultiFileTestCase
2017-04-17 23:00:16 +03:00
Alexey Sedunov
b65e082425
Test Framework: Fix module creation in multi-module tests
2017-04-17 23:00:12 +03:00
Zalim Bashorov
05c3e7e81d
Don't export kotlin-reflect form util module and add it explicitly where it's required.
...
Also, remove kotlin-reflect form container module.
Main goal is get rid of kotlin-reflect.jar from modules what required for minimal compiler.jar which can compile Kotlin only to JS to make it smaller.
2017-04-17 18:18:31 +03:00
Mikhail Glukhikh
ba04dac4b7
Cleanup: when possible, do analyzeFullyAndGetResult -> analyzeFully
...
Also, when possible, do analyzeAndGetResult -> analyze
2017-04-07 15:36:00 +03:00
Dmitry Jemerov
f9495aa0d7
Introduce and use KotlinPaths.getStdlibPath()
...
Also support renaming .jar file when updating an existing library
2017-04-04 11:21:06 +02:00
Alexey Sedunov
2eb912a30c
Move: Convert AbstractMoveTest to light fixture test case
...
Extract multi-module move test to a separate class
2017-03-31 18:24:16 +03:00
Dmitry Jemerov
6febe1e8a2
Convert RenameTest to light fixture test case
...
Extract multi-module rename test to a separate class.
2017-03-28 15:48:38 +02:00
Dmitry Jemerov
265e765ec9
Allow to exclude specific qualified names from import in tests
...
In tests, ImportFix imports the first available candidate. This can
lead to non-deterministic tests when multiple candidates are available.
With this fix, unwanted candidates can be excluded.
2017-03-27 19:48:59 +02:00
Dmitry Jemerov
e2f75463d7
Rewrite AbstractQuickFixTest based on light fixture test case
...
Don't reconfigure runtime before every test. For consistency,
mark tests that require the runtime with directives instead of relying
on test file names.
2017-03-27 19:48:43 +02:00
Dmitry Jemerov
9d74657f11
Mark KotlinCodeInsightTestCase as deprecated
2017-03-27 19:45:50 +02:00
Dmitry Jemerov
b24ce04dea
Convert IntentionTestGenerated to light fixture test case
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
5af423f1b4
Allow configuring kotlin.test in KotlinLightCodeInsightFixtureTestCase
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
036b87a001
KotlinJdkAndLibraryProjectDescriptor: J2K
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
1435f11a9f
KotlinJdkAndLibraryProjectDescriptor: rename to .kt
2017-03-23 15:48:33 +01:00
Dmitry Jemerov
199ce6706b
Convert AbstractConcatenatedStringGeneratorTest to light test case
...
Remove explicit library configuration; rely on
getProjectDescriptorFromFileDirective() instead.
2017-03-23 15:48:33 +01:00
Alexey Sedunov
a21f19d613
Move: Use Kotlin declaration mover to handle KtFile
...
IDEA-provided file mover does not process conflicts
#KT-13911 Fixed
2017-03-22 13:36:08 +03:00
Alexey Sedunov
b65460c12f
Move: Fix tests in IDEA 2017.1
...
Do not prevent usages search if target directory is not known yet.
Force content root configuration for multi-module tests
2017-03-20 18:46:02 +01:00
Dmitry Jemerov
ab5067a0d3
remove write action around closeAndDeleteProject()
2017-03-20 18:45:23 +01:00
Mikhail Glukhikh
b121bf8802
Cleanup: fix some compiler warnings (mostly deprecations, javaClass)
2017-03-15 17:35:31 +03:00
Alexey Sedunov
641a9a7153
Kotlin Facet: Get rid of duplicating data in facet configuration
2017-03-09 23:06:12 +03:00
Dmitry Jemerov
4261880340
Add test for enabling coroutines/bumping language level, fix several breakages
2017-03-09 13:41:57 +01:00
Dmitry Jemerov
720da176db
Exclude keywords from completion if the corresponding feature is unsupported by the language level selected for the module
2017-01-30 12:32:41 +01:00
Nikolay Krasko
c1538aea43
Get annotation for injection from reference descriptor (KT-15548)
...
#KT-15548 Fixed
2017-01-12 14:21:47 +03:00