116 Commits

Author SHA1 Message Date
Robert Stoll
1f1f0a50ca show representation for failure in feature extraction if subject defined
or in case failure hints or sub-assertions are defined.
2021-07-06 22:40:23 +02:00
Robert Stoll
d43b37e004 deprecate resultAssertions, use new ...Expectations in api-infix 2021-07-05 21:54:02 +02:00
Robert Stoll
f67cd01e38 rename appendAssertion/CreatedBy to append and appendAsGroup
This way we can use it also on ProofContainer and users won't notice
anything as long as they recompile
2021-05-29 21:22:55 +02:00
Robert Stoll
5da01b789b update README examples to the to + infinitive schema 2021-05-22 23:40:39 +02:00
Robert Stoll
f4af95da17 deprecate pathAssertions, use new ...Expectations in api-fluent 2021-05-22 23:23:07 +02:00
Robert Stoll
76d12f3847 deprecate throwableAssertions, use new ...Expectations in api-infix 2021-05-20 21:55:34 +02:00
Robert Stoll
5608af1852 deprecate throwableAssertions, use new ...Expectations in api-fluent 2021-05-20 21:52:23 +02:00
Robert Stoll
dddcad90bf deprecate mapEntryAssertions, use new ...Expectations in api-infix 2021-05-19 18:10:06 +02:00
Robert Stoll
7222026a84 deprecate mapEntryAssertions, use new ...Expectations in api-fluent 2021-05-19 18:09:39 +02:00
Robert Stoll
a82b7dd935 deprecate iterableAssertions, use mew ...Expectations in api-infix 2021-04-28 21:38:47 +02:00
Robert Stoll
37b4e8144f deprecate iterableAssertions, use mew ...Expectations in api-fluent 2021-04-28 21:26:00 +02:00
Robert Stoll
1fea83a62b deprecate expectation verb assert and assertThat 2021-04-14 21:33:18 +02:00
Robert Stoll
fdcbc1ab2a deprecate old anyAssertions and use new anyExpectations in api-infix 2021-04-12 22:41:33 +02:00
Robert Stoll
b81729506b deprecate old anyAssertions and use new anyExpectations in api-fluent 2021-04-12 22:41:32 +02:00
Robert Stoll
c2a1942c5c rename core-api to core
and use `expectation` in packages.md instead of `assertion`
2021-04-06 21:06:11 +02:00
Robert Stoll
144d35c167 replace SubjectProvider with Expect but do not yet remove
we cannot yet remove it because we still have addAssertion on Expect
and if we remove it, would also have one on AssertionContainer. Two
different definitions which would not work together. This also means:
- deprecate addAssertion/addAssertionsCreatedBy/createAndAddAssertion
  in Expect, add append... to AssertionContainer
2021-04-04 21:32:58 +02:00
Robert Stoll
2519afb254 remove deprecated modules, ReportFactory, ExpectBuilder and dependOnMe
moreover:
- adjust packages.md, also remove deprecaed modules there and remove
  documentation which is no longer used
- remove createRegisterJsServicesTask in build.gradle
- adjust bbc/bc due to breaking changes (removal of different types).
  in the same go we have to forgive bc for infix as we no longer have
  ReporterFactory and since we don't use ascii bullet points in infix
  tests any more since 0.16.0 - we have established own tests for this
  aspect
- rename RealTranslatorIntSpec to TranslatorIntSpec and remove the
  existing TranslatorIntSpec which was intended for ReporterFactory
  based implementations.
2021-04-01 22:57:33 +02:00
Robert Stoll
6571239140 introduce its as convenience feature extractor function 2021-03-18 21:19:06 +01:00
Robert Stoll
eeccac627c improve error message for TranslatableWithArgs and cover with tests
moreover:
- also cover the behaviour of Text
2021-02-18 16:29:59 +01:00
Robert Stoll
5474d2fca3 deprecate SubjectProvider & Expect.maybeSubject, remove AsertionHolder
moreover:
- adjust SmokeTests use _logicAppend instead of addAssertion and impl
  function
2021-01-10 20:36:52 +01:00
Robert Stoll
4aa0600789 fix settings.gradle.kts bundle smoke test was no longer included
add a check if directory exists in custom include (we had this in
tutteli-gradle plugin, had definitely some merit)
2021-01-09 23:02:42 +01:00
Robert Stoll
636fe9079e remove deprecated APIs, bundles, domain/core and part of domain-builders
moreover:
- remove deprecated translation modules
- remove functions in api-fluent and api-infix which were only there
  due to bbc, we are going to break binary compatibility anyway, so we
  can remove them.
- remove Assert/AssertionPlant and co.
- remove AssertionChecker and co.
- remove deprecated verbs using still Assert
- remove ExpectImpl and co.
- remove AssertImpl and co.
- remove subject from SubjectProvider (was only there because of Assert)
  - also remove PlantHasNoSubjectException and simplify corresponding
    code catching it.
- remove all deprecated functionality in domain-api, domain-builders
  domain-robstoll and domain-robstoll-lib which were only used by the
  deprecated APIs
- remove atrium-spec, was only used by deprecated APIs
- remove spek1 dependencies, all projects are now using spek2
- move spec about disjunctive matches from domain-builders into the
  corresponding APIs
2020-12-24 20:36:06 +01:00
Robert Stoll
d63a8956a2 reformat @file:Suppress JAVA_MODULE_DOES_NOT_READ_UNNAMED_MODULE 2020-07-11 23:45:50 +02:00
Robert Stoll
c2269c8a89 deprecate ExpectImpl.builder; use assertionBuilder directly 2020-07-11 21:58:37 +02:00
Robert Stoll
a534308807 deprecate dependOn_atrium_domain_robstoll 2020-07-08 23:09:31 +02:00
Robert Stoll
31ff629f5e create a deprecated folder under misc and move deprecated modules 2020-05-31 20:02:29 +02:00
Robert Stoll
c78c5e8d5c move TO_BE back to DescriptionAnyAssertion and use IS in pathAssertions 2020-05-30 15:24:44 +02:00
Robert Stoll
a5af719457 introduce Text, deprecate RawString, treat Translatable always as raw 2020-05-28 23:30:47 +02:00
Robert Stoll
72e8d38260 remove android modules 2020-05-25 23:25:36 +02:00
Robert Stoll
8ff0c61ce8 check dexer against jvm projects 2020-05-25 23:13:13 +02:00
Robert Stoll
bf60b4ff73 build windows also against JDK 11
introduce typealias CharSequenceOrNumberOrChar for Any

move CharSequenceOrNumberOrChar to domain-api and use in domain-impl

update setup instructions for the new infix API

include the new infix API to be published

preparation for accepting String instead of Zoned/LocalDate(Time) object

preparation for #480, #481 and #482

refer to current milestone in good_first_issue template

fix link for nullableContainer

return empty message in case callee is org.spekframework.ide

reduce code duplication also for jvm specs, add more cases to PathSpec

fix wrong replacements and workaround KT-38721 (add import next to star)

api-fluent work done

commiting requested changes

updated with comments

adding problematic classes which break the build

adding problemtic code to server to reproduce error

reproducing problematic build on CI

fix to build problem

addressing latest comment, build should pass

adjust the pseudo-keyword from exist to existing

moved infix jdk8 extension to jvm module

rebasing
2020-05-15 15:25:00 +03:00
assaflei
69f04e6893 check android jar's against SDK level 26 by compiling to dex with d8 2020-05-08 23:21:06 +02:00
Robert Stoll
05b6524fb3 deprecate Assert, Assertion(Collecting/Checking/Reporting)Plant
and suppress deprecation warnings
2020-04-22 21:51:14 +02:00
miftahun
9ad81eb9ca #430 deprecate api-cc-infix add replacements for anyInsertions (#434)
* deprecate anyAssertions in api-cc-infix
* #430 updated package.json
2020-04-14 20:51:01 +02:00
Robert Stoll
47facb86eb add new infix api to cc-infix bundles and to core
so that one can easily migrate to the new infix API.
Moreover, suppress deprecations in core tests for now as we are going
to deprecate the cc-infix. We will remove this suppression once we
migrate to the new infix API
2020-04-10 22:56:32 +02:00
Ivan Fedorov
ffc44b01db add bundles for new infix API (issue #236) 2020-04-08 11:38:50 +03:00
Robert Stoll
a46d9012b5 document kotlin 1.3 extension requires dep on domain-robstoll-kotlin_1_3
And use isSuccess in SmokeSpec (revealed that the current documentation
is not good enough).
2020-03-14 21:58:48 +01:00
Robert Stoll
58a818f1a7 adjust module-info in SmokeTests (due to kotlin bug not detected) 2020-03-14 21:51:12 +01:00
assaflei
769401320e Migrate smoke tests to spek2 at fluent-en_GB 2020-03-14 21:39:28 +01:00
Robert Stoll
91e7332f51 add spek2 dependency directly to bundle
configuring via smoke-test was a bad idea as they are only activated
with jdk >= 9 (so not for jdk8)
2020-03-14 21:32:04 +01:00
Robert Stoll
8db7c9e5a3 exclude smokeTest of extensions from publishing and add spek2 dep
we also need to add the spek2 dep to the smokeTests of bundles
2020-03-13 15:03:06 +01:00
Robert Stoll
037d336d79 mention that cc-infix specs don't need to be migrated to spek2 2020-03-10 21:02:47 +01:00
Robert Stoll
259bb5106f change TODOs mentioning 0.10.0 back to 1.0.0
reverts more of b57126b4
2020-02-01 23:26:55 +01:00
Robert Stoll
32e4a2d1c1 revert with 1.0.0 not with 0.10.0
kind of reverts b57126b4 and parts of 9899d9fa
2020-01-31 22:40:19 +01:00
Robert Stoll
b57126b4e3 change deprecation message, removal with 0.10.0 instead of 1.0.0 2020-01-11 14:30:00 +01:00
Robert Stoll
8a0a0b6303 rename assertionContainer to expect
even though `expect` is not a noun and sometimes it might be confusing
it is still better than assertionContainer IMO as one quickly knows that
we talk about `Expect` and not some other potential abstract thing
2020-01-07 23:16:54 +01:00
Robert Stoll
1289e2bce6 replace ThrowableThrown by normal expect
For this to work we have to:
- introduce Fun0Assertions with the two assertion function
  isThrowing and isNotThrowing
 - rename expect which expects an act to expectOld (remove in
   subsequent commit)
- fix old smoke tests which use wrong assertion verbs
2019-12-12 22:29:02 +01:00
Robert Stoll
726f9cedea add api-fluent-en_GB to de_CH bundle for easier migration 2019-11-27 22:54:55 +01:00
Robert Stoll
e1d72bb7e3 deprecate cc-de_CH 2019-11-27 22:43:07 +01:00
Robert Stoll
c79acff8ff remove bundle from module name in module-info.java
- resolves #273
2019-11-26 22:36:04 +01:00