{"id":15400674,"url":"https://github.com/ekrich/portable-scala-java-test","last_synced_at":"2026-05-19T14:10:25.038Z","repository":{"id":135982660,"uuid":"265355091","full_name":"ekrich/portable-scala-java-test","owner":"ekrich","description":"Allow testing against JVM and Scala Native","archived":false,"fork":false,"pushed_at":"2020-07-02T16:45:45.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T00:42:16.772Z","etag":null,"topics":["jvm","scala","scala-native","scalajs","testing"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekrich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-19T20:14:27.000Z","updated_at":"2020-06-29T19:54:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"2d74e80f-06b2-4938-aa81-b6577305bc75","html_url":"https://github.com/ekrich/portable-scala-java-test","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"8a1fc4d1e049bd299c25e22aeb6ed50ad8f819da"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ekrich/portable-scala-java-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekrich%2Fportable-scala-java-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekrich%2Fportable-scala-java-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekrich%2Fportable-scala-java-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekrich%2Fportable-scala-java-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekrich","download_url":"https://codeload.github.com/ekrich/portable-scala-java-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekrich%2Fportable-scala-java-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548003,"owners_count":26004815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jvm","scala","scala-native","scalajs","testing"],"created_at":"2024-10-01T15:54:38.964Z","updated_at":"2025-10-06T02:20:49.546Z","avatar_url":"https://github.com/ekrich.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Portable Scala Java Test\n\nWhen porting Java platform code to Scala.js and Scala Native you create\nunit tests. These tests should succeed if run against the JVM and also\nagainst the code you are creating for Scala.js, Scala Native or both\nplatforms. \n\n**Warning: Please do not look at any Java source as it is GPL\nlicensed and is not compatible with the Scala.js and Scala Native code\nbases.** You may use Apache Harmony or implement by scratch using the\nJavadoc.\n\nThis project allows tests to be run against JVM, JS, and Scala Native. This\nproject is setup to allow you to add code and the tests that run against\nyour code. You can also test for multiple Scala versions and versions of\nScala.js. Currently, it is setup to only run one Scala Native version but\nit can be easily changed like the Scala.js setup to support multiple versions.\n\nAdd your code in the shared project `scalacode` and also your test code into\nthe shared project `testSuite`. These are the directions needed if all your\ncode runs on all Scala.js and Scala Native platforms and your tests compile\nand run on all three platforms. If this is not the case, you can put your\ncode in the appropriate cross platform area.\n\nYou can run the following commands in `sbt` to run for each platform and\nversion: `clean` `compile` `test`\n\nIf you would like to run one test suite against the JVM, Scala Native, and \nScala.js respectively, these are examples:\n\n```\nsbt:portable-scala-java-test\u003e testSuiteJVM/testOnly *PropertiesSuite\nsbt:portable-scala-java-test\u003e testSuiteNative/testOnly *PropertiesSuite\nsbt:portable-scala-java-test\u003e testSuiteJS/testOnly *PropertiesSuite\n```\n\nIf you want to run all the test suites for individual platforms use\nthe following commands:\n\n```\nsbt:portable-scala-java-test\u003e testSuiteJVM/test\nsbt:portable-scala-java-test\u003e testSuiteNative/test\nsbt:portable-scala-java-test\u003e testSuiteJS/test\n```\n\nCurrently the project uses [MUnit](https://scalameta.org/munit/) to test\nso you can't just copy paste to Scala.js that uses JUnit or Scala Native\nthat has its own test suite and doesn't support JUnit yet.\nThis is an inconvenience but the changes are pretty minor unless\nyou have a big test suite. This should be a more nimble environment\nespecially for Scala Native depending on your needs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekrich%2Fportable-scala-java-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekrich%2Fportable-scala-java-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekrich%2Fportable-scala-java-test/lists"}