I'm also generally leery of an implicit conversion M[T] => T.
I did think a fair bit about what name to use, including alternatives like get (shorter) and apply (just parens if so desired). Other suggestions for consideration are welcome.
In general, I think larger task bodies should be separated out into a separate method regardless of the ultimate name/syntax chosen. The libraryDependencies example isn't one of them, but a contrived example:
On Tue, May 7, 2013 at 2:10 PM, Mark Harrah <dmha...@gmail.com> wrote:
I did think a fair bit about what name to use, including alternatives like get (shorter) and apply (just parens if so desired). Other suggestions for consideration are welcome.Is there anything in the macro business which will prevent me from writing my own implicit so I can leave off the .value? When macros are involved one becomes pessimistic about maintaining full generality. For instance maybe it will "work" but the macro needs to be completely aware of it, because it will have to deconstruct the implicit wrapper. At least that's my experience with similar things.
Personally I prefer being explicit here.
Going forward, there is one main task left. The remaining tickets[5] are
symptoms of the same basic problem and will be fixed together.
On Tue, 7 May 2013 13:13:00 -0700It is required for the expression to type check before macro expansion. scalaVersion has type Initialize[String] and scalaVersion.value has type String. .value is technically lying, but it is marked @compileTimeOnly so it can't accidentally escape to bytecode if used outside of the proper macro.
Paul Phillips <pa...@improving.org> wrote:
> "libraryDependencies += "org.scala-lang" % "scala-reflect" %
> scalaVersion.value"
>
> Is the presence of .value a consequence of needing something to trigger the
> macro, or is it something you consider desirable? If this could be
>
> libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion
>
> is there some reason for it not to be?
Best,Ismael
One main change from the old framework API is there is now a notion of a "run" with both a beginning and an end. The beginning is when the runner method is called on Framework:That means a run is starting, and the Runner that is returned represents the lifetime of that run. That allows the test framework to do things at the beginning of a run, like create directories, which was not possible in the old framework API because there was no notion of "run."
--
You received this message because you are subscribed to a topic in the Google Groups "simple-build-tool" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simple-build-tool/816bxcVfRuU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to simple-build-t...@googlegroups.com.
By the way if there's a way to get test reports in Jenkins I would really like to have it. Apparently you have to output JUnit xml, which is described here: http://stackoverflow.com/a/9691131/333643
You can use native support in ScalaTest or Specs2 to output the relevant XML file.
Hi Mark,OK, I think the question is whether a test starting event is needed, or just a duration after it is over. The easiest would be to simply add a duration to Event. Then sbt's TestListener would still get one event for each test, which is simple, but it would contain the actual test duration. I'd like to know what Team City and other CI tools like that actually need, though. Does anyone here know?
--
It's actually friendly enough, from a UI perspective to show pending tests. I'd +1 the feature for activator
--
Another use case is that during test development, you need to know if a test is hanging up the suite. That could be for any reason -- blocking i/o on a test thread, etc -- but sometimes you want to monitor the test suite closely. Maybe there are unexpected interactions between tests.Here's a use case to logically distinguish submit and start events: I submit a bunch of tests, but they aren't started in submit order because the clever framework knows that B can only succeed if A succeeds, so it only runs A first, even if B precedes A on submit.The use case: run tests for issue 1234, the tool will figure out which tests those are, but I can't guess if that is one test or a hundred -- a more elaborate use case would be a tool that guesses which tests have to run after an incremental change -- so I really want to see "1000 tests pending," "these are running now", and "these are done (pass/fail)".Here's the recent issue, nothing mind bending, just show me when something has hung so I don't hang around waiting for it:Sorry I'm not up to speed on the sbt side, so please consume a grain of salt or your preferred buffering agent.I did just "upgrade" partest with the idea that the scalac test suite should be uniform with the framework; the upgrade was for ScalaCheck tests run by partest; my other fork of partest has more fine-grained test events. So that's my background. Probably you have all hashed this stuff over, so AIA for naive comments.
https://issues.scala-lang.org/browse/SI-7416
The trunk partest only shows when a test finishes.My fork of partest just collates the submit order to report when tests get run and then finish (or fail to finish soon).
##teamcity[testFinished name='testname' duration='<test_duration_in_milliseconds>']. So you can send it an arbitrary duration value.--
You received this message because you are subscribed to a topic in the Google Groups "simple-build-tool" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/simple-build-tool/816bxcVfRuU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to simple-build-t...@googlegroups.com.