You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Christofer Dutz <ch...@c-ware.de> on 2020/05/31 10:40:53 UTC
[RoyaleUint] Maven Surefire Integration?
Starting a new thread about this … don’t enjoy too multi-topic monster threads.
Hi all and specially Josh.
I was told that you added something RoyaleUint which should work the same way as the old FlexUnit … great thing. This definitively was missing.
Currently it seems that these tests can be run in an Ant build but not in a Maven build.
We should change that ASAP :-)
Having worked a lot on Flexmojos I think I have a fair idea of how we could integrate this into a new Royale surefire runner.
Would you: Josh be interested with working on this with me? I bet I will have some questions.
Chris
Re: [RoyaleUint] Maven Surefire Integration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Josh,
Problem was that on busy ci servers there used to be problems with this with flexmojos in the past (seems reserving a random port didn't always work). And this wuld avoid this issue. Therefore being able to do that would be perfect.
A fixed default port would also eliminate the ability to run more than one build on one machine.
Chris
________________________________
Von: Josh Tynjala <jo...@bowlerhat.dev>
Gesendet: Montag, 1. Juni 2020 22:22
An: Apache Royale Development <de...@royale.apache.org>
Betreff: Re: [RoyaleUint] Maven Surefire Integration?
It's probably technically possible, but I don't think that there's anything
like that built into RoyaleUnit at this time.
In JS, we could check if a particular URL query parameter is set. In SWF,
we could check for a "FlashVars" parameter. If the paramter exists,
RoyaleUnit's CIRunner could use it. Otherwise, it would fall back to the
default port. Again, this doesn't exist right now, but I think that it
would be possible.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jun 1, 2020 at 12:19 PM Christofer Dutz <ch...@c-ware.de>
wrote:
> Hi Josh,
>
> I think that was pretty much the same way it worked with Flexmojos.
>
> I do recall the problem then being that the server had to allocate a
> socket and to use that number in the compilation of the test-runner.
> I always thought this was problematic.
>
> Do you have a way of calling the runner and passing along the port so the
> client will connect to dynamically allocated ports?
>
> Chris
>
>
> Am 01.06.20, 17:41 schrieb "Josh Tynjala" <jo...@bowlerhat.dev>:
>
> Sure, let's get this figured out!
>
> Some background: For the RoyaleUnit Ant task, I basically created a
> fork of
> the original FlexUnit Ant task. The task runs a server that listens for
> socket connections from Royale apps, and the apps report their test
> results
> over the socket. For the SWF side, I don't think that I needed to
> change
> anything. It just worked. For the JS side, I needed to add support for
> connections over WebSockets because raw sockets aren't supported in
> JS/HTML.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Sun, May 31, 2020 at 3:41 AM Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > Starting a new thread about this … don’t enjoy too multi-topic
> monster
> > threads.
> >
> > Hi all and specially Josh.
> >
> > I was told that you added something RoyaleUint which should work the
> same
> > way as the old FlexUnit … great thing. This definitively was missing.
> > Currently it seems that these tests can be run in an Ant build but
> not in
> > a Maven build.
> >
> > We should change that ASAP :-)
> >
> > Having worked a lot on Flexmojos I think I have a fair idea of how we
> > could integrate this into a new Royale surefire runner.
> >
> > Would you: Josh be interested with working on this with me? I bet I
> will
> > have some questions.
> >
> > Chris
> >
> >
> >
>
>
Re: [RoyaleUint] Maven Surefire Integration?
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
It's probably technically possible, but I don't think that there's anything
like that built into RoyaleUnit at this time.
In JS, we could check if a particular URL query parameter is set. In SWF,
we could check for a "FlashVars" parameter. If the paramter exists,
RoyaleUnit's CIRunner could use it. Otherwise, it would fall back to the
default port. Again, this doesn't exist right now, but I think that it
would be possible.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jun 1, 2020 at 12:19 PM Christofer Dutz <ch...@c-ware.de>
wrote:
> Hi Josh,
>
> I think that was pretty much the same way it worked with Flexmojos.
>
> I do recall the problem then being that the server had to allocate a
> socket and to use that number in the compilation of the test-runner.
> I always thought this was problematic.
>
> Do you have a way of calling the runner and passing along the port so the
> client will connect to dynamically allocated ports?
>
> Chris
>
>
> Am 01.06.20, 17:41 schrieb "Josh Tynjala" <jo...@bowlerhat.dev>:
>
> Sure, let's get this figured out!
>
> Some background: For the RoyaleUnit Ant task, I basically created a
> fork of
> the original FlexUnit Ant task. The task runs a server that listens for
> socket connections from Royale apps, and the apps report their test
> results
> over the socket. For the SWF side, I don't think that I needed to
> change
> anything. It just worked. For the JS side, I needed to add support for
> connections over WebSockets because raw sockets aren't supported in
> JS/HTML.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Sun, May 31, 2020 at 3:41 AM Christofer Dutz <
> christofer.dutz@c-ware.de>
> wrote:
>
> > Starting a new thread about this … don’t enjoy too multi-topic
> monster
> > threads.
> >
> > Hi all and specially Josh.
> >
> > I was told that you added something RoyaleUint which should work the
> same
> > way as the old FlexUnit … great thing. This definitively was missing.
> > Currently it seems that these tests can be run in an Ant build but
> not in
> > a Maven build.
> >
> > We should change that ASAP :-)
> >
> > Having worked a lot on Flexmojos I think I have a fair idea of how we
> > could integrate this into a new Royale surefire runner.
> >
> > Would you: Josh be interested with working on this with me? I bet I
> will
> > have some questions.
> >
> > Chris
> >
> >
> >
>
>
Re: [RoyaleUint] Maven Surefire Integration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Josh,
I think that was pretty much the same way it worked with Flexmojos.
I do recall the problem then being that the server had to allocate a socket and to use that number in the compilation of the test-runner.
I always thought this was problematic.
Do you have a way of calling the runner and passing along the port so the client will connect to dynamically allocated ports?
Chris
Am 01.06.20, 17:41 schrieb "Josh Tynjala" <jo...@bowlerhat.dev>:
Sure, let's get this figured out!
Some background: For the RoyaleUnit Ant task, I basically created a fork of
the original FlexUnit Ant task. The task runs a server that listens for
socket connections from Royale apps, and the apps report their test results
over the socket. For the SWF side, I don't think that I needed to change
anything. It just worked. For the JS side, I needed to add support for
connections over WebSockets because raw sockets aren't supported in JS/HTML.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Sun, May 31, 2020 at 3:41 AM Christofer Dutz <ch...@c-ware.de>
wrote:
> Starting a new thread about this … don’t enjoy too multi-topic monster
> threads.
>
> Hi all and specially Josh.
>
> I was told that you added something RoyaleUint which should work the same
> way as the old FlexUnit … great thing. This definitively was missing.
> Currently it seems that these tests can be run in an Ant build but not in
> a Maven build.
>
> We should change that ASAP :-)
>
> Having worked a lot on Flexmojos I think I have a fair idea of how we
> could integrate this into a new Royale surefire runner.
>
> Would you: Josh be interested with working on this with me? I bet I will
> have some questions.
>
> Chris
>
>
>
Re: [RoyaleUint] Maven Surefire Integration?
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Sure, let's get this figured out!
Some background: For the RoyaleUnit Ant task, I basically created a fork of
the original FlexUnit Ant task. The task runs a server that listens for
socket connections from Royale apps, and the apps report their test results
over the socket. For the SWF side, I don't think that I needed to change
anything. It just worked. For the JS side, I needed to add support for
connections over WebSockets because raw sockets aren't supported in JS/HTML.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Sun, May 31, 2020 at 3:41 AM Christofer Dutz <ch...@c-ware.de>
wrote:
> Starting a new thread about this … don’t enjoy too multi-topic monster
> threads.
>
> Hi all and specially Josh.
>
> I was told that you added something RoyaleUint which should work the same
> way as the old FlexUnit … great thing. This definitively was missing.
> Currently it seems that these tests can be run in an Ant build but not in
> a Maven build.
>
> We should change that ASAP :-)
>
> Having worked a lot on Flexmojos I think I have a fair idea of how we
> could integrate this into a new Royale surefire runner.
>
> Would you: Josh be interested with working on this with me? I bet I will
> have some questions.
>
> Chris
>
>
>