{"id":9434,"date":"2016-03-02T16:16:02","date_gmt":"2016-03-02T15:16:02","guid":{"rendered":"http:\/\/fdt.powerflasher.com\/?p=9434"},"modified":"2016-03-02T16:16:13","modified_gmt":"2016-03-02T15:16:13","slug":"release-9-8-test-resources","status":"publish","type":"post","link":"https:\/\/fdt.powerflasher.com\/blog\/2016\/03\/release-9-8-test-resources\/","title":{"rendered":"Release 9.8 &#8211; Test Resources"},"content":{"rendered":"<p>With this new FDT Release build path entries could be marked as test resource.<\/p>\n<p>A test resource is usually only included during compilation for a Flex Unit test run.<br \/>\nAny build path entry can be turned into a test resource:<img loading=\"lazy\" class=\"alignnone size-medium wp-image-9435\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2016\/03\/ProjectBuildPathTestResource-440x418.png\" alt=\"ProjectBuildPathTestResource\" width=\"440\" height=\"418\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/ProjectBuildPathTestResource-440x418.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/ProjectBuildPathTestResource-230x218.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/ProjectBuildPathTestResource.png 763w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/>Typically all Flex Unit libraries and the test source folder are marked as test resources.<\/p>\n<p>The project compiler properties page contains a new option to include test resources:<img loading=\"lazy\" class=\"alignnone size-medium wp-image-9438\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2016\/03\/image43-440x268.png\" alt=\"image43\" width=\"440\" height=\"268\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/image43-440x268.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/image43-230x140.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/image43-768x467.png 768w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/image43.png 891w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/>By default this option is off since normal project launches usually do not require test resources.<\/p>\n<p>Also the compiler arguments tab of launch configurations contains the option for test resource inclusion:<img loading=\"lazy\" class=\"alignnone size-medium wp-image-9443\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherDetailedCompilerArguments-1-440x303.png\" alt=\"FlexUnitLauncherDetailedCompilerArguments\" width=\"440\" height=\"303\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherDetailedCompilerArguments-1-440x303.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherDetailedCompilerArguments-1-230x159.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherDetailedCompilerArguments-1-768x529.png 768w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherDetailedCompilerArguments-1.png 933w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/>By default it is inactive.<\/p>\n<p>Additionally the compiler arguments tab contains a further option to force inclusion of test resources which will override the project compiler properties:<img loading=\"lazy\" class=\"alignnone size-medium wp-image-9440\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherCompilerArguments-440x300.png\" alt=\"FlexUnitLauncherCompilerArguments\" width=\"440\" height=\"300\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherCompilerArguments-440x300.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherCompilerArguments-230x157.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherCompilerArguments-768x524.png 768w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/FlexUnitLauncherCompilerArguments.png 936w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/>Typically Flex Unit test launch configurations require the test resources to be included and so for them the option is active by default.<\/p>\n<p>In other launch configurations this option is inactive by default:<img loading=\"lazy\" class=\"alignnone size-medium wp-image-9441\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2016\/03\/SWFLauncherCompilerArguments-440x310.png\" alt=\"SWFLauncherCompilerArguments\" width=\"440\" height=\"310\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/SWFLauncherCompilerArguments-440x310.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/SWFLauncherCompilerArguments-230x162.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/SWFLauncherCompilerArguments-768x540.png 768w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2016\/03\/SWFLauncherCompilerArguments.png 918w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With this new FDT Release build path entries could be marked as test resource. A test resource is usually only included during compilation for a Flex Unit test run. Any build path entry can be turned into a test resource:Typically all Flex Unit libraries and the test source folder are marked as test resources. The [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/9434"}],"collection":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/comments?post=9434"}],"version-history":[{"count":12,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/9434\/revisions"}],"predecessor-version":[{"id":9453,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/9434\/revisions\/9453"}],"wp:attachment":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/media?parent=9434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/categories?post=9434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/tags?post=9434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}