I want to exclude tests which have the #ExcludeCatory(Slow.class) annotation.
But i dont find a the corresponding ant command.
Something like <exclude name="**/Slow.class"/> does not work.
No, I don't think it's a duplicate.
I don't want to add another jar which contains the additional takari-cpsuite.jar
into our system. I just want to use basic components junit and ant. And I also don't want to put TestSuites into our project with the references to the ignored files.
Related
I'm trying to make my tasks run tests in a certain directory. I was looking at sourceSets, however I inferred that they are useful if you are running outside the test/groovy folder. All of my tests are within the test/groovy folder.
I've got a set of Geb tests as well as a set of service tests. I would like to run them both together and independently. Essentially my tree structure would look like this, being able to run all tests.
Test
--gebTest
----firefoxTest
----chromeTest
----ieTest
--servicesTest
----service1Test
----service2Test
----service3Test
----etc.
My file structure is as follows:
project
-src
--test
---groovy
----com
-----acme
------functional <---where my geb tests sit
------services <---umbrella for services
-------service1 <---each unique service
-------service2
-------service3
-------etc
Can anyone lend me a hand. For the life of me I don't know how Gradle picks what tests to execute.
Thank you in advanced.
SourceSets are indeed a solution to your problem, but I notice you only differentiate your tests by their package names. I'm not sure but that may prove problematic with source sets.
Personally I would prefer a directory structure like this anyway
src
-test
--groovy
---functional
----com etc
---services
----com etc
However, if you are attached to your current structure then take a look at Gradle's test filtering support, which will allow you to filter by package name.
http://www.gradle.org/docs/current/userguide/java_plugin.html#sec:java_test
Sorry for the noob question but I'm trying to start up a new application with Sails and include my assets. I'm using Bower to manage my packages for things like Bootstrap and JQuery. I had a read of this question and added a .bowerrc file which is now installing my Bower components to /assets.
I'm now confused as to how I should proceed to add these files into my project. It seems as though I can't just do a <script> tag in the header as I'm used to because it's giving me a file not found. Reading through the sails documentation it seems like Grunt should be creating a .tmp/public/assets folder in my project, but whenever I run sails lift and go to .tmp/ there is nothing in there.
I also read in the documentation that I should be using some kind of asset injection, I tried adding this to my HTML and it seems like it doesn't do anything.
My other question is around how I go about referencing images in my HTML. Obviously I can't just do something like src='assets/images/image.png, how should I go about this? Is there something really obvious that I'm missing?
Sails use grunt tasks to do lot of things during lift and build. You can get much better look how everything work if you take some time and check what is inside Gruntfile.js from root of your sails project.
About your specific question here is some information:
- from sails docs: "In order to take advantage of asset injection, minification, and concatenation you must put your assets in folder under assets/linker". This exactly mean that everything what you will put inside assets/linker directory will be affected by grunt tasks during lift. It mean that all files/directories from linker will be copy to .tmp/public and also some of that files will be processed before saved to .tmp/public.
- About adding tags. If you take a look at Gruntfile.js you will find this variables: var cssFilesToInject = [...] and var jsFilesToInject = [...] which contain files that will be automatic added to layout header during sails lift.
- About your 'other question', yes you can do something like 'src='linker/images/image.png' if you move that files to linker directory (assets/linker).
I hope this help :).
When browsing files in the Sublime sidebar, I would like to quickly access the commands available in the context menu via shortcuts. E.g. Delete file, rename file/folder, new file/folder.
(FYI: super+N is not an ideal solution for creating new files - it isn't context aware and will usually choose an inappropriate default location).
You can enable command logging by inserting the following into the console sublime.log_commands(True). This will give you the commands and arguments being executed. You can then create a key binding with the appropriate command. My guess is the commands will use some sort of path, so you may need to write a small plugin to inject the correct paths for the various commands.
For new file creation specifically, you may want to take a look at AdvancedNewFile. Disclaimer - I'm the current maintainer of the plugin. I've tried to make it a more flexible than it originally was, with regards to specifying where to create the file. Though if you do decide to use it and have feature request, feel free to create an issue about it.
I would like to set a variable in my swf at compile time that reads the current commit/branch from git and also edits the pom.xml with that name as the artifact id.
I want to do this so that I can query a swf and retreive which version of the maven build it is.
Is this possible, and which plugins would I use to do this?
I have done this sort of thing using ANT in the past, but I need to be able to do it using Maven instead.
My searches on the internet have mostly revealed ways to do this in Java but not in Actionscript.
I assume you are using the flexmojo's plugin. Have a look at the flexmojo's definesDeclaration parameter. This will allow you to pass in values for the compiler variables you define in your Actionscript project with the -define option (per the Adobe article you've linked to).
Then it's just a matter of setting that value to the artifact ID, date/time, or whatever.
We have several Flash objects included in our project. We call each one a specific type of widget... For readability/debugging purposes I'd like to rename Main.mxml to something else.
At first this seemed easy, as it would be just a setting in our maven configuration (we're using flex mojos to build our swf).
However; changing the sourceFile from Main.mxml to MyWidget.mxml doesn't seem to do it.
Any thoughts?
Yes you can change the name, just be sure the HTML wrapper references the correct name.
We are using Flex Mojos and to change the name we just needed to update the sourceFile parameter.