That’s frankly terrifying. Is this documented? How would I know where to look for those errors, and how would I "assemble the code myself into a regular war project, deploy that separately and debug”?
Thanks, Russ
Hi,
Results will appear on the screen (in your console), in a result folder and in various other places. It's unfortunately not the cleanest of all test runners. Also be aware that after each test the workspace is "dirty", which can lead to some surprises. To prevent this either delete the entire workspace every time or use a git reset in the test folder. It's not super user-friendly at the moment.
Failures are very hard to debug, as the code is in fairly custom "projects" that's tied together by ant. Meaning, an IDE would not recognise any projects or code even. If I really, really have to debug something I usually assemble the code myself into a regular war project, deploy that separately and debug that.
Kind regards, Arjan
Thanks, Arjan.
Where do I look for the results? And how do I debug any failures?
Thanks, Russ
Hi,
We have a number of build-in tests, they are described in the Jenkinsfile in the root of the repo. Essentially you run them by:
init:
export WORKSPACE=`pwd`
export S1AS_HOME = "${WORKSPACE}/glassfish6/glassfish" export APS_HOME = "${WORKSPACE}/appserver/tests/appserv-tests" export TEST_RUN_LOG = "${WORKSPACE}/tests-run.log"
build:
bash -xe ./gfbuild.sh build_re_dev
and then running tests:
./appserver/tests/gftest.sh run_test [name of test], e.g. ./appserver/tests/gftest.sh run_test deployment_all
You could also try to setup Jenkins and a Kubernetes cluster locally and run the Jenkinsfile, but that's a bit more complicated.
Hope this helps!
Kind regards, Arjan
_______________________________________________ glassfish-dev mailing list glassfish-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
_______________________________________________ glassfish-dev mailing list glassfish-dev@xxxxxxxxxxxTo unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/glassfish-dev
|