Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Josh Tynjala
The TraceListener in the example code listens for events from the TestRunner and prints to the console. Those same events could be used to collect failures and do anything you want with them. - Josh On Fri, Jul 7, 2017 at 8:59 AM, Alex Harui wrote: > Hi Josh, > > That

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Alex Harui
And you have a Core.swc in /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/libs? What is in: /Users/harbs/Documents/ApacheFlex/flex-asjs/frameworks/flex-config.xml -Alex On 7/7/17, 9:14 AM, "Harbs" wrote:

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Harbs
https://paste.apache.org/Gcuj > On Jul 7, 2017, at 6:55 PM, Alex Harui wrote: > > What error did you get? > > The Ant build on the CI server runs checkintests and it is passing there. > > The FlexJS Mustella uses Selenium for the JS

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Alex Harui
Hi Josh, That could be good. I took a quick look and didn't understand how it reports errors that can be collected and reported. How does that work? Would it interface with Selenium? Thanks, -Alex On 7/7/17, 8:23 AM, "Josh Tynjala" wrote: >I wrote a simple test runner

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Alex Harui
What error did you get? The Ant build on the CI server runs checkintests and it is passing there. The FlexJS Mustella uses Selenium for the JS run, but some manual intervention is currently required. -Alex On 7/7/17, 3:16 AM, "Harbs" wrote: >The checkintests target

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Josh Tynjala
I wrote a simple test runner similar to FlexUnit for some of my projects. I'm happy to donate this code to FlexJS or FlexUnit if it can help bootstrap the testing efforts. https://github.com/BowlerHatLLC/nextgenas-test It supports [Test], [Before], and [After] metadata:

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-07 Thread Harbs
The checkintests target currently fails. I’m guessing the build file was not updated for dual. Selenium has a JS API[1]. It seems like we should be able to write tests in MXML and AS and then use Node.js to run the results. I’m not sure how easy it would be to generalize tests so that the same

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-06 Thread justin
Hi, What do people feel about setting a code and branch coverage on all checkins? Say 80% coverage of changes made? Thanks, Justin

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-06 Thread Justin Mclean
Hi, BTW Sonar can give you useful test coverage statistics [1] and will even show line by line where a test is covered by tests [2] look at the red and green bars in the gutter. Thanks, Justin 1.

Re: FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-06 Thread Alex Harui
I have a subset of Mustella working on both platforms in the BasicTests that run from the checkintests target in the Ant build. There is a writeup on Mustella in the wiki https://cwiki.apache.org/confluence/display/FLEX/Mustella+Overview. I haven't gone through it to see how much does or doesn't

FlexJS Tests (was Re: [FlexJS] technical debt)

2017-07-06 Thread Harbs
Where are the instructions on how to use it? If I know how to write tests, I’d be much better about doing so… > On Jul 6, 2017, at 11:53 PM, Alex Harui wrote: > > I have put in place a test infrastructure