{"id":54367,"library":"scalatest-3","title":"ScalaTest","description":"ScalaTest is a testing framework for Scala and Java, supporting multiple styles like FlatSpec, FunSuite, and WordSpec.","status":"active","version":"3.2.20","language":"java","source_language":null,"source_url":"https://github.com/scalatest/scalatest","tags":["testing","scala","scalatest","unit-test"],"install":[{"cmd":"<dependency>\n  <groupId>org.scalatest</groupId>\n  <artifactId>scalatest_3</artifactId>\n  <version>3.2.20</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.scalatest:scalatest_3:3.2.20'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"AnyFlatSpec","correct":"org.scalatest.flatspec.AnyFlatSpec"}],"quickstart":{"code":"import org.scalatest.flatspec.AnyFlatSpec\n\nclass ExampleSpec extends AnyFlatSpec {\n  \"A Stack\" should \"pop values in last-in-first-out order\" in {\n    val stack = new scala.collection.mutable.Stack[Int]\n    stack.push(1)\n    stack.push(2)\n    assert(stack.pop() === 2)\n    assert(stack.pop() === 1)\n  }\n}","lang":"scala","description":"Shows a simple FlatSpec test in Scala."},"warnings":[{"fix":"Ensure you use the correct artifact for your Scala version (e.g., scalatest_2.13 for Scala 2.13).","message":"ScalaTest 3.x is for Scala 3; use scalatest_2.13 for Scala 2.13.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"search_vec":"'flatspec':15 'framework':6 'funsuit':16 'java':10 'like':14 'multipl':12 'scala':8,20 'scalatest':1,2,21 'style':13 'support':11 'test':5,19,24 'unit':23 'unit-test':22 'wordspec':18","created_at":"2026-06-15T09:02:34.923295+00:00","updated_at":"2026-06-15T09:02:34.923295+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://www.scalatest.org","github":"https://github.com/scalatest/scalatest","docs":"https://appdoc.app/artifact/org.scalatest/scalatest_3/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}