Closed janhancic closed 9 years ago
Seeing this too, Windows and Java version:
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
@janhancic I just tried the scenario you mentioned on salestrader but I'm able to run the test multiple times, or have I misunderstood the steps:
thanhc@THANHC-T440P /d/Development/Motifs/salestrader/sdk (develop) $ ./brjs test ../apps/salestrader/motf-bladeset/blades/motfticket/ UTs
To help us improve BladeRunnerJS we would like to collect data on the commands run and the size of applications used with the toolkit This data is completely anonymous, does not identify you as an individual or your company and does not include any source code. Do you agree to the collection of this anonymous data? (Y/n) y
The app 'salestrader' is either missing BRJS jar(s), contains BRJS jar(s) it shouldn't or the BRJS jar(s) are outdated. You should de
Testing salestrader\motf-bladeset\blades\motfticket\tests\test-unit (UTs): ...................................................................... ........... Total 81 tests (Passed: 81; Fails: 0; Errors: 0) (425.00 ms) Chrome 36.0.1978.0 Windows: Run 81 tests (Passed: 81; Fails: 0; Errors 0) (425.00 ms) Tests Passed.
thanhc@THANHC-T440P /d/Development/Motifs/salestrader/sdk (develop) $ ./brjs test ../apps/salestrader/motf-bladeset/blades/motfticket/ UTs The app 'salestrader' is either missing BRJS jar(s), contains BRJS jar(s) it shouldn't or the BRJS jar(s) are outdated. You should de
Testing salestrader\motf-bladeset\blades\motfticket\tests\test-unit (UTs): ...................................................................... ........... Total 81 tests (Passed: 81; Fails: 0; Errors: 0) (409.00 ms) Chrome 36.0.1978.0 Windows: Run 81 tests (Passed: 81; Fails: 0; Errors 0) (409.00 ms) Tests Passed.
thanhc@THANHC-T440P /d/Development/Motifs/salestrader/sdk (develop) $ java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode, sharing)
It doesn't happen on every machine. Other team members don't have this problem for instance. But it's not just my machine either, as @briandipalma experienced the same thing on a different project.
Weird thing happened just now. Ran the tests from outside the SDK folder with sdk/brjs test apps/
and got this problem. Then ran them from inside the SDK folder and they ran fine.
I was not able to replicate this either on my machine, neither from within or outside the sdk. My specifications are as follows:
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
I will be continuing the investigation.
I have reached the conclusion that symlinked paths are what is causing the test packs not to be recognized. A scenario that would cause this is listed on #1384, for example (which looks to be a duplicate of this issue).
I don't have any symlinks in my project.
@janhancic, I see. Would you mind trying with the 1.0-RC1 and check whether you can reproduce this issue with that?
Do you know if latest CT has that version of BRJS?
Yes, it's 4.2.0-64-g5ea622a-dev, I confirmed it with @thanhc.
OK, I'll see if I have any time today. Will let you know, thanks.
Hi @janhancic, I -think- I have managed to reproduce the issue you are having.
Here are steps I took, and I am getting the same exception message as you are.
My intention was to create an isolated app on the Desktop.
~/Desktop
: brjs create-app myapp
.
This created my app in brjs-apps
in my original BRJS installation.myapp
to ~/Desktop
.~/Desktop
: brjs test myapp
.So I think there is not much point in you testing the behaviour with 1.0-RC1
since I am currently on our develop
branch which incorporates the changes there.
Lovely :)
Fixed by #1405.
Not able to reproduce the issue locally but closing as #1405 itself seems good, @janhancic feel free to re-open if its not fix in the next brjs release
I've upgraded our app to CT v4.2.0 which uses BRJS v0.15.4.0. After the upgrade I can't run the tests from the SDK folder any more. I can run them one time, and every time after that BRJS errors out on every blade/bladeset/lib that has tests with this exception:
If I run the tests from outside the SDK folder (in the root of the app or in the blade) then everything works as expected.
I've cloned a fresh repo assembled it and this still happens.
I'm on WIndows 7, using git-bash. My Java version is:
Let me know if I can provide any more info.