Commit Graph

34 Commits

Author SHA1 Message Date
Dmitriy Dolovov 1d721f03b2 [Native][tests] Destroy test process that has not finished on time 2021-11-24 13:30:09 +03:00
Dmitriy Dolovov 536bfe5bf9 [Native][tests] Use more compact paths to produced binaries 2021-11-24 10:25:16 +03:00
Dmitriy Dolovov 34627633c4 [Native][tests] Add an ability to fail tests on exceeded timeout 2021-11-24 10:25:10 +03:00
Dmitriy Dolovov a2ad9026a6 [Native][tests] Make file content comparison to be OS-neutral 2021-11-24 10:25:04 +03:00
Dmitriy Dolovov bd3ae12e0a [Native][tests] Minor. Update comments for TestModule/TestCase/TestCaseGroup 2021-11-24 10:24:59 +03:00
Dmitriy Dolovov 7ea66076eb [Native][tests] Minor. Rename effectivePackageName to nominalPackageName 2021-11-24 10:24:52 +03:00
Dmitriy Dolovov 3fa5363434 [Native][tests] Fix sanitization of logged command-line arguments 2021-11-24 10:24:42 +03:00
Dmitriy Dolovov 445156f2fc [Native][tests] Minor. Rename PackageName to PackageFQN 2021-11-18 22:37:38 +03:00
Dmitriy Dolovov 6cae6dc5e0 [Native][tests] Re-organize TestCaseGroupProvider 2021-11-18 17:02:44 +03:00
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 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
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