-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide for better Platform support and testing (#350)
* Add classes to allow migrations of methods to specific platforms * Move some common methods * Move platform to config package * Shared JVM Native tests work * Move parseString to common * Works good for all platforms, stub for JvmNative * Add two Reader tests to Native * Make default build 2.13 and rename ConfigDocumentTest to ConfigDocumentFactoryTest * Move ConfigFactoryTests to impl like other tests * Move tests from ConfigTest to ConfigFactoryJvmTest and then ConfigTest to shared * Make test class names singular * Checkpoint commit for ConfigOrigin setup * Update to more shared tests, add URL for Native, from 189 to 228 tests for Native * Add env vars to shared in anticipation of using them in Native or JS * Move ConfigSubstitutionTests to shared * Json4s almost works * Json4s cleanup * Got json4s test to work * Make comments generic * Json4sTest is now cross platform * Small updates, JS setting commented out * Upgrade to new version of json4s to fix JS ClassCastException problem * Upgrade Scala.js to 1.15.0, allow Reader tests now * Update docs and readme for release
- Loading branch information
Showing
36 changed files
with
4,520 additions
and
2,994 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
sconfig/js/src/main/scala/org/ekrich/config/PlatformConfigFactory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.ekrich.config | ||
|
||
/** | ||
* [[ConfigFactory]] methods for Scala.js platform | ||
*/ | ||
abstract class PlatformConfigFactory extends ConfigFactoryCommon {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
sconfig/jvm-native/src/main/scala/org/ekrich/config/ConfigFactoryJvmNative.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.ekrich.config | ||
|
||
/** | ||
* [[ConfigFactory]] methods common to JVM and Native | ||
*/ | ||
abstract class ConfigFactoryJvmNative extends ConfigFactoryCommon {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
sconfig/jvm-native/src/test/scala/org/ekrich/config/impl/ConfigFactoryJvmNativeTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.ekrich.config.impl | ||
|
||
// import org.junit.Assert._ | ||
// import org.junit.Test | ||
|
||
class ConfigFactoryJvmNativeTest { | ||
// Empty for now - Scala.js has parody with Scala Native for now | ||
} |
6 changes: 6 additions & 0 deletions
6
sconfig/jvm/src/main/scala/org/ekrich/config/PlatformConfigFactory.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package org.ekrich.config | ||
|
||
/** | ||
* [[ConfigFactory]] methods for Scala JVM platform | ||
*/ | ||
abstract class PlatformConfigFactory extends ConfigFactoryJvmNative {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.