-
-
Notifications
You must be signed in to change notification settings - Fork 289
Add specs2 support #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
fbc9732
8f19172
4da610c
4fa2edc
9ec055e
c949660
91da63b
adc8a13
fe4abba
e1c40f1
a89adac
2c8db8b
379d972
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| bazel-* | ||
| .idea | ||
| hash1 | ||
| hash2 | ||
| *.iml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| java_library( | ||
| name = "specs2_all", | ||
| visibility = ["//visibility:public"], | ||
| exports = [ | ||
| "@org_specs2_specs2_core_2_11//jar", | ||
| "@org_scala_lang_modules_scala_parser_combinators_2_11//jar", | ||
| "@org_scala_lang_modules_scala_xml_2_11//jar", | ||
| "@org_scala_lang_scala_library//jar", | ||
| "@org_scala_lang_scala_reflect//jar", | ||
| "@org_scalaz_scalaz_concurrent_2_11//jar", | ||
| "@org_scalaz_scalaz_core_2_11//jar", | ||
| "@org_scalaz_scalaz_effect_2_11//jar", | ||
| "@org_specs2_specs2_codata_2_11//jar", | ||
| "@org_specs2_specs2_common_2_11//jar", | ||
| "@org_specs2_specs2_matcher_2_11//jar", | ||
| ], | ||
| ) | ||
|
|
||
| java_library( | ||
| name = "specs2_with_junit", | ||
| visibility = ["//visibility:public"], | ||
| exports = [ | ||
| "@org_specs2_specs2_junit_2_11//jar", | ||
| "@junit_junit//jar", | ||
| "@org_hamcrest_hamcrest_core//jar", | ||
| "@org_scala_lang_modules_scala_parser_combinators_2_11//jar", | ||
| "@org_scala_lang_modules_scala_xml_2_11//jar", | ||
| "@org_scala_lang_scala_library//jar", | ||
| "@org_scala_lang_scala_reflect//jar", | ||
| "@org_scalaz_scalaz_concurrent_2_11//jar", | ||
| "@org_scalaz_scalaz_core_2_11//jar", | ||
| "@org_scalaz_scalaz_effect_2_11//jar", | ||
| "@org_specs2_specs2_codata_2_11//jar", | ||
| "@org_specs2_specs2_common_2_11//jar", | ||
| "@org_specs2_specs2_core_2_11//jar", | ||
| "@org_specs2_specs2_matcher_2_11//jar", | ||
| ], | ||
| ) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| def specs2(): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should be called |
||
|
|
||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is already in the |
||
| name = "org_scala_lang_modules_scala_parser_combinators_2_11", | ||
| artifact = "org.scala-lang.modules:scala-parser-combinators_2.11:1.0.4", | ||
| sha1 = "7369d653bcfa95d321994660477a4d7e81d7f490", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_specs2_specs2_codata_2_11", | ||
| artifact = "org.specs2:specs2-codata_2.11:3.8.4", | ||
| sha1 = "d73d5caeb5cf064d275bf1511b68ab5a13030649", | ||
| ) | ||
|
|
||
| # org.scalaz:scalaz-concurrent_2.11:bundle:7.2.3 | ||
| # org.scalaz:scalaz-effect_2.11:bundle:7.2.3 | ||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| # org.specs2:specs2-codata_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_scalaz_scalaz_core_2_11", | ||
| artifact = "org.scalaz:scalaz-core_2.11:7.2.3", | ||
| sha1 = "58d29a4615430829ef116e86de12327a17fe4827", | ||
| ) | ||
|
|
||
| native.maven_jar( | ||
| name = "org_specs2_specs2_core_2_11", | ||
| artifact = "org.specs2:specs2-core_2.11:3.8.4", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| # org.specs2:specs2-core_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_scala_lang_scala_reflect", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should use the one in the |
||
| artifact = "org.scala-lang:scala-reflect:2.11.8", | ||
| sha1 = "b74530deeba742ab4f3134de0c2da0edc49ca361", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-core_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_specs2_specs2_matcher_2_11", | ||
| artifact = "org.specs2:specs2-matcher_2.11:3.8.4", | ||
| sha1 = "51f382c7306cc57aab270e0f4089803dc35a7b1e", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-matcher_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_specs2_specs2_common_2_11", | ||
| artifact = "org.specs2:specs2-common_2.11:3.8.4", | ||
| sha1 = "f3b280746b585b6872ef5ada0d78420b54226dfe", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_scala_lang_modules_scala_xml_2_11", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please use the one in the |
||
| artifact = "org.scala-lang.modules:scala-xml_2.11:1.0.5", | ||
| sha1 = "77ac9be4033768cf03cc04fbd1fc5e5711de2459", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-matcher_2.11:jar:3.8.4 | ||
| # org.scalaz:scalaz-concurrent_2.11:bundle:7.2.3 | ||
| # org.scala-lang.modules:scala-xml_2.11:bundle:1.0.5 wanted version 2.11.7 | ||
| # org.scalaz:scalaz-effect_2.11:bundle:7.2.3 | ||
| # org.scalaz:scalaz-core_2.11:bundle:7.2.3 | ||
| # org.scala-lang:scala-reflect:jar:2.11.8 | ||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| # org.specs2:specs2-codata_2.11:jar:3.8.4 | ||
| # org.specs2:specs2-core_2.11:jar:3.8.4 | ||
| # org.scala-lang.modules:scala-parser-combinators_2.11:bundle:1.0.4 wanted version 2.11.6 | ||
| native.maven_jar( | ||
| name = "org_scala_lang_scala_library", | ||
| artifact = "org.scala-lang:scala-library:2.11.8", | ||
| sha1 = "ddd5a8bced249bedd86fb4578a39b9fb71480573", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| # org.specs2:specs2-codata_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_scalaz_scalaz_concurrent_2_11", | ||
| artifact = "org.scalaz:scalaz-concurrent_2.11:7.2.3", | ||
| sha1 = "4788f84d28f8de6783b60c91de6da14f85980bca", | ||
| ) | ||
|
|
||
| # org.scalaz:scalaz-concurrent_2.11:bundle:7.2.3 | ||
| # org.specs2:specs2-common_2.11:jar:3.8.4 | ||
| # org.specs2:specs2-codata_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "org_scalaz_scalaz_effect_2_11", | ||
| artifact = "org.scalaz:scalaz-effect_2.11:7.2.3", | ||
| sha1 = "8ab944e32781a44f2aecba99d392c3142b25af1c", | ||
| ) | ||
|
|
||
| # Aditional dependencies for specs2 junit runner | ||
| native.maven_jar( | ||
| name = "org_specs2_specs2_junit_2_11", | ||
| artifact = "org.specs2:specs2-junit_2.11:3.8.4", | ||
| ) | ||
|
|
||
| # org.specs2:specs2-junit_2.11:jar:3.8.4 | ||
| native.maven_jar( | ||
| name = "junit_junit", | ||
| artifact = "junit:junit:4.12", | ||
| sha1 = "2973d150c0dc1fefe998f834810d68f278ea58ec", | ||
| ) | ||
|
|
||
| # junit:junit:jar:4.12 | ||
| native.maven_jar( | ||
| name = "org_hamcrest_hamcrest_core", | ||
| artifact = "org.hamcrest:hamcrest-core:1.3", | ||
| sha1 = "42a25dc3219429f0e5d060061f71acb49bf010a0", | ||
| ) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we can just have a
junittarget, and then in a macro, etc... have junit + specs. Some might just want to run a junit test without any specs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and/or the target can be a bind variable, and the users can set up what to point to.