Commit Graph

122 Commits

Author SHA1 Message Date
Nikolay Krasko 9cac2e1945 Minor: fix splitting the line 2020-06-15 23:22:20 +03:00
Konstantin Tskhovrebov 032d017c4f Revert "Add tests for setup native run gutters."
This reverts commit d61e40e4
2020-06-11 17:28:14 +03:00
Konstantin Tskhovrebov d61e40e49b Add tests for setup native run gutters. 2020-06-10 15:58:47 +03:00
Yunir Salimzyanov 7ab7ca5ff0 Cleanup as35 extension files (KTI-240) 2020-06-01 18:43:10 +03:00
Andrey Uskov c7a53e4435 Fix android import tests 2020-05-28 22:07:31 +03:00
Andrey Uskov 2eb354f211 Fixed import of MPP modules with single artifacts
#KT-38037 Fixed
2020-05-28 22:07:16 +03:00
Vyacheslav Gerasimov af2dce0549 as41: Build against AS 4.1 C10 2020-05-27 18:46:57 +03:00
Yaroslav Chernyshev 785fa7dd1c [Gradle, Import] Ignore incompatible test runs for Native targets.
#Fixed KT-34516
2020-05-14 17:43:00 +03:00
Dmitriy Dolovov 151890dde5 Add test for overloading expect MemberDescriptors discrimination
Issue #KT-38298
2020-04-28 13:16:23 +07:00
Konstantin Tskhovrebov e6f527f1d0 Update tests: disable tests run gutters for Object. 2020-04-23 14:16:22 +03:00
Mikhail Bogdanov 9d68db1668 Switch usages android build tools from 23.0.1 to 28.0.3 2020-04-14 13:53:22 +02:00
Ilya Chernikov cf387ffad1 Remove obsolete source-sections plugin 2020-04-13 13:49:33 +02:00
Dmitriy Dolovov cdbc272aca IDE. Drop redundant test in GradleNativeLibrariesInIDENamingTest 2020-04-10 18:14:13 +07:00
Ilya Matveev cf157e3999 [IDE, native] Update mock K/N dist: fully qualified klib names 2020-04-09 13:07:45 +07:00
Ilya Matveev 12e4159525 [IDE, native] Update mock K/N dist: klib componentization
This patch actualizes an internal structure of mock klibs
used in IDE tests for the K/N support.
2020-04-09 13:07:44 +07:00
Nikolay Krasko b89a7325b2 Remove https://dl.bintray.com/kotlin/kotlin-eap repository from gradle tests 2020-04-03 19:31:31 +03:00
Nikolay Krasko 01e10324f0 Eliminate 1.3.60-eap-76 usages from tests 2020-04-03 19:31:31 +03:00
anastasiia.spaseeva 5f4a94a1b3 [Spec tests] Enable running spec tests at all for remote run 2020-03-30 11:15:53 +03:00
Dmitriy Novozhilov 6c9dd8bb22 [FIR] Reorganize modules of raw fir builders 2020-03-25 18:07:27 +03:00
Natalia Selezneva 47d97902c1 KotlinDslScriptsModel: import models in case when script contains errors
^KT-37237 Fixed
2020-03-25 12:11:09 +03:00
Zalim Bashorov eaac5bdac4 [IDE KN] Treat klib as Kotlin/Native library iff manifest contains builtins_platform==NATIVE 2020-03-20 01:27:41 +03:00
Nikolay Krasko 34fda45113 201: Update test data about test run markers under gradle 2020-03-12 03:02:30 +03:00
Dmitry Savvinov e6885323da Accept incorrect behaviour for run-config tests for AS
Short description.
It's a corner-case with old MPP plugins and AS, so we
don't care too much that it works incorrectly, but we'd like to avoid
muting it in order to keep track of this "known issue"

Long description.
In IDEA, KotlinJvmTestMethodGradleConfigurationProducer successfully
returns run configuration; in AS, it fails to do so.

This is becasuse it doesn't override 'forceGradleRunner', which means
that in 'setupConfigurationFromContext' we'll delegate to super-call,
which will pull 'GradleProjectSettings.getTestRunner()'.

In IDEA, it will return GRADLE, but in AS it will return PLATFORM,
because AS uses special instance of GradleProjectSettings which forces
runner to PLATFORM.

Note that KotlinMultiplatformJvmTestMethodGradleConfigurationProducer
does override 'forceGradleRunner' to true, that's why other tests work
successfully. However, this test uses old 1.2.X-MPP plugins, therefore
all new KotlinMultiplatform*ConfigurationProducers won't work here.\
2020-03-02 16:40:15 +03:00
Dmitry Savvinov baa2c56e2d Force-set path to exact project for MPP run configurations
Otherwise, path will be set to the root project. Given that we provide
task names in relative form rather than absolute, that will lead to
launching this task in all subprojects (e.g. task 'jvmTest'). This might
be a huge issue, because when we create run configuration for specific
test method/class, we pass test filter as well. This test filter will
execute in all projects with matched test tasks, so if some other
subproject has similarly-named test task, but doesn't have a suitable
tests for that filter, the whole build will fail.

Note that the ideal fix would involve using fully-qualified task names:
the current approach might lead to isses in advanced scenarious (e.g.
when user selects several test files from different modules -- then, we
won't be able to find one exact project path for the whole test run)

^KT-35038 Fixed
2020-02-17 20:05:50 +03:00
Dmitry Savvinov cc2884b8ae Add test on multiplatform run configurations in multiproject build
The current behaviour is undesired, see next commit for fix
2020-02-17 20:05:50 +03:00
Dmitriy Dolovov 901bb904e0 Fix GradleNativeLibrariesInIDENamingTest 2020-01-27 21:33:30 +07:00
Dmitry Savvinov 56286cd4dc Fix overly restrictive cast to allow running multiplatform tests for objects
^KT-35480 Fixed
2020-01-24 11:00:17 +03:00
Dmitry Savvinov 77a7ceaa55 Add test on object with tests in common module
^KT-35480 In Progress

(current behavior is undesired, see fix in next commit)
2020-01-24 11:00:17 +03:00
Dmitry Savvinov f78ea75431 Fix running tests from expect class by using FakeLightClasses
Unfortunately, IJ API requires us to return instances of
PsiClass/PsiMethod in order to proceed with run configuration creation.

In fact, those instances will be queried only by trivial requests, like
containingFile or name. Therefore, full-blown LightClasses are not
needed and even harmful, because for some declarations we can not build
proper light classes (like for expect declarations, for example)

Previously it mostly worked because most of declarations in common
indeed have corresponding Light-instances (because common source-set can
be seen from Java through JVM-part of a project).

^KT-34503 Fixed
2020-01-24 11:00:16 +03:00
Dmitry Savvinov cea612cba4 Add test on expect class with test methods inside
^KT-34503 In Progress

(current behaviour is undesired, see next commit for fix)
2020-01-24 11:00:16 +03:00
Dmitry Savvinov b34f091fa4 Introduce tests runner for run configurations + highlighting + Gradle
This allows us to check two things:
- presence of line markers (haven't been checked by old
  GradleTestRunConfigurationTests, though could've been checked by
  LineMarkerTests)
- some properties of run configurations which will be created from those
  line markers

Old GradleTestRunConfigurationTest have been renamed to
GradleTestRunConfigurationCustomTest and slightly modified to be able
to re-use the same testdata if necessary.
2020-01-24 11:00:16 +03:00
Dmitry Savvinov 5800160ee1 Rewrite GradleDaemonAnalyzerTest
Previously, GradleDaemonAnalyzer reused common IJ infrastructure for
highlighting tests (see DaemonAnalyzerTеstCase, ExpectedHighlightingData
and such).

Unfortunately, this infrastructure had several flaws,
mainly around checking expected highlighting against actual one:

- overlapping line markers lead to crash (fixed in 193+)

- no way to sanitize descriptions of line markers (important for cases
where description returns HTML-formatted text, which makes testdata
completely unreadable and also drives parser insane)

- thrown FileNotFoundException doesn't have a physical file with
expected testdata attached, which makes browsing diff a little less
convenient (no way to apply changes to expected file)

- no easy way to plug-in with additional after-highlighting checks

This commit fixes it by overriding doCheckResult and providing custom
checking of highlighting/line markers, based on TagsTestDataUtil.
Because we don't rely on IJ-checking anymore, we also remove weird hoops
with removing/adding testdata markup in checkFiles.
Also this commit adds strings sanitization in TagsTestDataUtil, removing HTML-tags
and line breaks, so that description of tag is always one-liner with
plain text.
2020-01-24 11:00:16 +03:00
Roman Golyshev a2b2c47b51 KT-34795 Use maven(...) instead of maven { setUrl(...) } for gradle scripts generation
- Use new syntax in tests, but not in actual gradle files
- Reuse public `toKotlinRepositorySnippet` instead of private one
- ^KT-34795 Fixed
2020-01-23 13:45:16 +03:00
Roman Golyshev 3dbc058db9 KT-34795 Remove obsolete Gradle 3.5 test data
- Tests do not run with Gradle 3.5 anymore
2020-01-23 13:45:16 +03:00
Nikolay Krasko f01b4706d1 Switch to 193 platform 2020-01-19 12:01:53 +03:00
Simon Ogorodnik 05308a3652 [FIR] Introduce module for all jvm extensions 2019-12-19 17:30:12 +03:00
Nikolay Krasko ea8fa55f12 Rename kotlinJUnitSettings test data folder to fix tests 2019-12-17 15:09:50 +03:00
Sergey Rostov 6e3e65c490 gradle.kts importing: add support for included builds and fix sub projects 2019-12-16 10:31:11 +03:00
Sergey Rostov fef193be63 gradle.kts: add tests for importing scripts configuration 2019-12-16 10:31:11 +03:00
Yan Zhulanow 748cbd7eec Import Kotlin JUnit run configuration settings from Gradle 2019-12-11 20:04:03 +09:00
Nikolay Krasko 29fbb8e22f Update to 193.5233.102 release (KT-35239)
- Mute android specific import tests (KT-35225).
- Mute GradleMultiplatformWizardTest (IDEA-225878).
- Minor update of test data.
2019-12-03 17:34:47 +03:00
Andrey Uskov 9643d5d28e Added import-resolve integration tests 2019-12-02 13:17:17 +03:00
Andrey Uskov 937cffd273 Support Gradle 5.x in GradleInspectionTest 2019-11-20 13:53:58 +03:00
Andrey Uskov 968ccf667a Fix GradleNativeLibrariesPropagationTest
Dev plugin in tests were replaced with release version
2019-11-20 13:53:52 +03:00
Andrey Uskov 8a3dfe93f2 Fixed GradleFacetImportTests for gradle 5.x 2019-11-20 13:53:50 +03:00
Andrey Uskov 9e7eff7e72 Enable ImportCompilerArgumentsWithInvalidDependencies test 2019-11-20 13:53:48 +03:00
victor.petukhov 25f3de2085 Use more stable kotlin dependency in tests for enabling inline classes flag 2019-11-15 16:13:44 +03:00
Andrey Uskov e963b71921 Tests of import with latest gradle plugin are implemented 2019-11-14 21:13:19 +03:00
Andrey Uskov 51590ef1b7 Migrate import tests to annotation-driven determination of target
kotlin plugin versions
2019-11-14 21:13:16 +03:00
Yan Zhulanow 987307cf92 Prefer Kotlin Gradle test run configurations when possible (KT-33787) 2019-11-11 17:13:58 +09:00