Skip to content

skluz/poc-scala-functional-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

functional-tests-in-scala

Features

JSON parser
  • JSON serialization/deserialization handled by Jackson
  • java.time.Instant to ISO 8601 conversion, e.g. 2014-12-03T10:15:30Z
  • serialization (object to JSON)
    • null fields are omitted
    • None is serialized to null
  • deserialization (JSON to object)
    • null is deserialize to null or None for Option
    • missing properties are deserialized to null or None for Option
    • deserialization fails when unknown field occurs in JSON (to enforce a new assertion or test)
  • enums are handled by @JsonScalaEnumeration
  • check utf.commons.json.jackson.JSONParserTest for some examples
Dependency updates check
  • run sbt dependencyUpdates to check which dependencies can be updated
Tags
  • use utf.commons.tags.WIP tag to run select and run single test
    • create new configuration: Run -> Edit Configuration -> ScalaTest
    • Search for tests: In whole project
    • Test Kind: All in package
    • Package: utf
    • Test options: -n utf.commons.tags.WIP
    • mark selected test like: it should "test something" in taggedAs WIP { ... }
Logging

ToDo

  • logging: logback.xml for api, web, perf - sbt + intellij
  • optional raw request logging (https://hc.apache.org/httpcomponents-client-4.5.x/logging.html)
  • sbt jenkins configurable targets
  • add scripts to download latest selenium driver
  • aspect-based logging in commons-web
  • scalatra for mocks
  • reuse parser & http client
  • entity + tests + readme
  • FAIL_ON_MISSING_CREATOR_PROPERTIES vs Option[_]

License

See the LICENSE file for license rights and limitations (MIT).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published