In a library like frameworks/js/projects/CoreJS, the Ant build checks to
see if src/test/royale/build.xml exists to determine if it needs to run
tests for JS. If the file isn't there, it won't run tests for JS. This will
not prevent it from running tests for SWF. A similar check is also in the
Ant build for frameworks/projects/Core to determine if it needs to run
tests for SWF.

This was basically how it was set up when we were using FlexUnit and could
only run SWF tests. I'm not sure who did that originally. I just made the
same mechanism work for JS tests too, once we had RoyaleUnit and the
<royaleunit> Ant task available.

If you have some tests that need to be run in SWF only, but other tests
that should be run in both SWF and JS, then I think that you need to use
COMPILE::SWF to omit certain tests from the JS build. Similarly with
COMPILE::JS for JS-only tests.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Fri, Aug 9, 2019 at 1:42 AM Greg Dove <greg.d...@gmail.com> wrote:

> It looked like the asjs build was fine, but I need to figure out what I was
> doing wrong with the royaleunit setup to get it (presumably) not run the
> new swf tests in js-only.
> So I commented out the new tests in the build, and (fingers crossed) this
> should mean the js-only build will work again.
> @josh if you have any guidance about the js-only side of things for
> RoyaleUnit, I'd certainly welcome that! Maybe I'm missing something really
> obvious (probably!).
>
> I'm not even sure how to run js-only build locally. But I will take another
> look tomorrow.
>
>
> On Fri, Aug 9, 2019 at 6:20 PM Greg Dove <greg.d...@gmail.com> wrote:
>
> >
> > fyi, I am not sure what is causing the builds to fail, as they are
> working
> > fine for me locally.
> >  I see one was failing on
> > Express: DataBindingExample
> > prior to my recent commits and is continuing to fail at the same spot (it
> > does not do that for me locally)
> >
> > js-only seems stuck on one of the new royaleunit tests I added which
> > appears attempting to run for swf.
> >
> > I will be back in one hour to try to figure these out, sorry if there is
> > any inconvenience
> >
>

Reply via email to