Vyacheslav Gerasimov
14d9ec9fb2
Build: Use javadocJar helper to specify artifact explicitly
...
Creating javadocJar task for every project produces lots of unnecessary
tasks, some project don't even have code. Jar task without outDir
property set fails idea import with gradle 5.0+
2019-02-18 19:59:36 +03: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
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
ad76edd7b7
Raise deprecation level for org.junit.Test in stdlib for common and JS
...
#KT-21703
2018-09-11 18:15:03 +03:00
Dmitry Savvinov
accbd07b2e
Publish ContractsDsl
...
- Mark @ContractsDsl as @Experimental
- Move Contracts DSL out from 'internal' package
- Change visibility of ContractsDsl from 'internal' to 'public'
^KT-25274 Fixed
^KT-25495 Fixed
2018-08-30 16:19:51 +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
Ilya Gorbunov
dd8a00f651
Make kotlin-test-js implement both kotlin-test-common and kotlin-test-annotations-common
2018-03-22 21:55:04 +03:00
Ilya Gorbunov
2d099a29b8
Clean up redundant -Xmulti-platform option from multiplatform projects
...
It was necessary before, but now it's provided automatically.
2018-03-22 15:16:33 +03:00
Anton Bannykh
338bde23fc
JS stdlib: run kotlin.test library tests
2018-03-15 17:54:17 +03:00
Alexey Tsvetkov
29d2679e8d
Do not configure dist task for every published module
...
This change avoids compiling kotlin-compiler-embeddable,
kotlin-gradle-plugin, and other gradle plugins,
when running `./gradlew dist`
2018-02-01 17:39:55 +03:00
Anton Bannykh
ff00831109
JS: minor fixes in kotlin-test-js-it
...
Jasmine version 2.6.0 doesn't support Promise-based
asynchronous tests.
Also the error message for an unexpected test result was incorrect.
2018-01-19 20:16:31 +03:00
Anton Bannykh
7b0070ea62
Promise-based async integration test for kotlin-test-js
2018-01-17 14:46:13 +03:00
Anton Bannykh
8ed8e05a68
JS: honor ignoreTestFailures flag and report failures to TC (KT-20735
...
fixed)
2017-12-19 14:38:15 +03:00
Anton Bannykh
f68d639c63
Add @Target's to kotlin.test annotations
2017-12-15 14:14:00 +03:00
Anton Bannykh
6d6ce7cbab
JS: publish to NPM sourcemaps and *.kjsm files
2017-10-17 13:04:35 +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
Anton Bannykh
7076fda542
JS: added back integration test for @BeforeTest and @AfterTest annotations
...
The test was removed in e5cfd198c7 in order
to prevent gradle tests from crashing when running with the old compiler.
2017-10-14 02:16:22 +03:00
Jake Wharton
e611b9a9ba
Add assertSame and assertNotSame methods.
2017-10-13 18:53:52 +03:00
Anton Bannykh
b839ba5015
JS: correct imports in kotlin.test-js integration test
2017-10-12 15:41:54 +03:00
Anton Bannykh
e5cfd198c7
JS: temporarily remove @BeforeTest and @AfterTest checks from integration test until bootstrap compiler supports the annotations.
2017-10-12 14:24:59 +03:00
Anton Bannykh
c57b0b4cbc
JS: rename @Before to @BeforeTest and @After to @AfterTest for better JUnit compatibility
2017-10-12 14:24:59 +03:00
Zalim Bashorov
eb1c76ecc4
Make :kotlin-test-js:distJs depends on compileKotlin2Js to avoid running the task too early
2017-10-10 20:19:07 +03:00
Ilya Gorbunov
6fc3f269a6
Change logical path of kotlin-test-js-it project, fix paths to outputs
...
Fix paths to kotlin-test-js and kotlin-test-js-it outputs
2017-09-20 11:51:43 +02:00
Ilya Chernikov
4b3936b598
Revert to default build dirs, add missing projects
2017-09-20 11:51:28 +02:00
Stanislav Erokhin
91a99b4726
Migrate impl to actual in libraries projects
2017-09-16 19:47:46 +03:00
Anton Bannykh
f4b329a055
JS: support @Before and @After annotations in kotlin.test
2017-09-06 14:36:45 +03:00
Alexander Udalov
3bc8ca5913
Report "declaration should be marked with impl" when possible
...
Also support a quick fix to add 'impl' modifier (KT-18454), although it
doesn't work yet on classes because there's no error on them in the IDE
#KT-18087 Fixed
#KT-18452 Fixed
#KT-18454
2017-08-25 15:35:05 +03:00
Anton Bannykh
070e35bc15
JS: removed app-module-path dependency from integration tests
2017-08-16 13:21:46 +03:00
Anton Bannykh
a641838368
JS: clean up the unit test intergartion tests build file
2017-08-16 13:21:46 +03:00
Anton Bannykh
226ffb6c7e
JS: write integration test outputs to a file to prevent polluting the log with expected test failures
2017-08-16 13:21:46 +03:00
Anton Bannykh
6ed7eaf546
JS tests: changes to kotlin.test + the way compiler tests are generated.
2017-07-19 12:24:09 +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
37e046f6cd
Provide shortcuts for producing quick compiler for maven and rebuilding stdlib-js from ant.
2017-04-10 19:46:06 +03:00
Ilya Gorbunov
337fd4e180
Drop poms that are no longer required. Drop separate unit test modules for stdlib js.
2017-04-08 08:28:50 +03:00
Ilya Gorbunov
3db1613167
Setup dist task to assemble libs for compiler distribution.
...
Produce special stdlib artifact with annotations for dist.
Put js outputs to dist, they're required for JS backend tests.
Use kotlin-compiler for maven, which has all required dependencies bundled.
Clean local directory repository on clean.
Change paths in tests to compiled artifacts.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
0b2cadc638
Provide a method for common publishing configuration.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
92ef26606b
Refactor build to make manifest specification less error-prone.
...
Use legacy implementation title in manifest of JS stdlib for now.
Change the way common jvm project configurations is applied.
Add missing artifacts to common libraries.
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
65a800840c
Use single task for empty javadocs.
2017-04-06 20:32:37 +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
8fd8310033
Build and package kotlin-test-js with gradle
2017-04-06 20:32:37 +03:00
Alexander Udalov
e5680565b3
JS: drop "-kjsm" flag, merge logic with "-meta-info"
...
#KT-16049 Fixed
2017-01-30 11:31:03 +03:00
Zalim Bashorov
29ac01f2e2
KJS: allow to use packages with names starting with "kotlin" only if the -Xallow-kotlin-package command line option is specified
...
#KT-14668 Fixed
2017-01-29 17:21:01 +03:00