How do I find out the exact JUnit version of my Play! 2 installation?
From a quick web search I see that in Play 1 I could consult the file /framework/dependencies.yml, right?
I am fairly new to the Play Framework and I do not know yet how sbt works.
The most straight forward way to do this is to write:
show test:dependency-classpath
to sbt console. Find it somewhere in the output.
Related
Warning: I'm a huge noob to TDD and Kotlin.
I've found good code snippets on the web for writing JUnit tests in Kotlin, but when I copy and paste, IntelliJ does not automagically import kotlin.test.* or org.junit.Test. Typically in Eclipse, when I copy and paste code snippets like this, the IDE can figure out where these libraries are in my underlying java install. Figured Kotlin/IntelliJ would be the same.
In the below screenshot, any idea why I cannot import test libraries? Do they need to be added explicitly to my path? Do I need to put these under a test, rather than the src folder?
Thanks
JUnit isn't in your project classpath, so IntelliJ can't find it's packages.
Follow the steps outlined in this answer: Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project, choosing libraries and then junit.
I want to to play around with Actionscript, mostly to compare the language with Javascript (I'm interested in the type system). Is there a straightforward way to do that or do I need to also install Flash or something similar? I'd prefer something that works on Linux but Windows-only is fine too.
Basically, I want to know if there is something for Actionscript that is analogous to v8/NodeJS or Rhino for Javascript, where you can run JS scripts directly (using console.log for output) without having to use a browser, create an HTML page, etc.
There is an amazing online tool capable of compiling Actionscript 3.0, this will aid your investigation of the language!
http://wonderfl.net/
As3Eval also is a good tool. Play around with the demo to get a feel for it.
It's windows only, but download Java, then install FlashDevelop : http://www.flashdevelop.org/
It'll download the flex sdk and everything you'll need to get started.
You'll need flash player to see your tests, and normally the debug player (take the standalone), which you can download here: http://www.adobe.com/support/flash player/downloads.html
As #neil says, you can also use wonderfl to test directly online, though obviously the experience won't be the same as a full ide.
You should be able to develop on Linux directly if you want to install flash builder (eclipse) but it's not free
I'm in the process of building a Carbon Archive using the new WSO2 Developer Studio. I'm trying to work out how I can wrap the components (Sequences/Proxies etc) in JUnit tests. These tests will need to run as part of a CI build process (Jenkins) in order to detect errors with any modified code. I've done some research and can't seem to find anything that immediately stands out on how to achieve this. I did find this link https://wso2.org/jira/browse/TOOLS-855
which suggests that it hasn't yet been implemented. Can anyone confirm when this will be implemented or if there is any way at present to achieve this?
There is currently no straight forward way to implement this scenario and this feature will be supported in a future version.
One mechanism i can think is that, add a separate Test module as a part of the build which executes after building C-Apps.
So what happens in here is that, first Jenkins produce the CAR file for C-Apps. Then Maven start executing the JUnit test suite. Before the execution of Test Suite, you can configure maven to copy the CAR files to Servers and start up server. Then execute the Test Cases against the started up server.
This way you can deploy the new CAR files in your Carbon Server and execute the tests against the new configuration in the Server.
Thanks and Regards,
Harshana
Is it somehow possible to output the traces in a deployed application to a display element?
I'm aware of the debug deploy in Flash Builder, but unfortunately I can't convince my iPad to work with that, so a real time trace output in my application would be really great.
Edit: On second thought, a full console output would probably be best. The flash console kostik suggested looks pretty good, so making it display the console output would be ideal.
Highly recomend monsterdebugger and flash-console however sometimes you just need to integration offered by an ide. Flash develop has some nice debugging features however I have come to love Intellij Idea's new features for flash debugging. Here is a peek of some recent gems http://blogs.jetbrains.com/idea/2011/12/features-of-flex-debugger/
http://code.google.com/p/flash-console/
I'd like to found some logging framework for AS3. For now I use trace() and debug version of Flash Player, but I'm looking something that can be enabled without having debug version installed?
Also, if you just want to view trace output with DebuggingPlayer that's no problem - download a program called "Vizzy Flash Tracer", it's just a proxy that listens for output from .swfs and displays it, with filtering options built in. Very useful, it's saved my ass many times!
Get it here: http://code.google.com/p/flash-tracer/
There are more then a couple of logging frameworks.
I really like 2
as3commons logging
MonsterDebugger
I use them both in projects.
Good luck