Adam Cameron
Adam Cameron
wil-shiftinsert
07/19/2022, 8:15 AMlmajano
07/20/2022, 3:13 PMlmajano
07/20/2022, 3:13 PMlmajano
07/20/2022, 3:13 PMwil-shiftinsert
07/20/2022, 3:29 PMAdam Cameron
Adam Cameron
seancorfield
seancorfield
Adam Cameron
Adam Cameron
Adam Cameron
timothyfarrar
08/02/2022, 7:51 PMdanmurphy
08/11/2022, 8:58 PMBaseIntegrationTest
that most of our integrations tests extend so we don’t have to do the same setup for each one. We have an aroundEach in that BaseIntegrationTest
which wraps each test in a transaction so we can rollback any database changes that each test did to prep for data for the test. That works great if the database transactions are in the actual it()
test. But if we do a database action in the beforeEach()
it is not rolling back the transaction and is committing instead.
Any ideas on how to change this so the rollback works whether the database action occurs in the it()
or the beforeEach()
? (function in the thread)danmurphy
08/12/2022, 2:36 AMrichard.herbert
08/15/2022, 1:54 PMcgi
scope?richard.herbert
08/26/2022, 8:50 AM<http://example.com/testbox/tests/runner.cfm|example.com/testbox/tests/runner.cfm>
runs and displays all the tests as expected and <http://example.com/testbox/test-browser/|example.com/testbox/test-browser/>
shows the listing of /testbox/tests/specs/
which is all good.
But when I click into any of the actual test components, like <http://example.com/testbox/tests/specs/BaseTest.cfc?method=runRemote|example.com/testbox/tests/specs/BaseTest.cfc?method=runRemote>
I get an empty screen and no HTML. What could I got wrong?Tim
08/26/2022, 12:56 PMTim
08/26/2022, 12:57 PMrichard.herbert
08/26/2022, 1:06 PM<http://example.com/testbox/tests/specs/BaseTest.cfc|example.com/testbox/tests/specs/BaseTest.cfc>
just tries to invoke the cfc which will fail?Tim
08/26/2022, 1:07 PMTim
08/26/2022, 1:10 PMrichard.herbert
08/26/2022, 1:15 PMrunner.cfm
I want to use the test-browser
that lets you move up and down your tests directory to find the actual test cfc you want to run and then it opens a new window just for that cfc which, for me, is showing an empty pageTim
08/26/2022, 1:34 PMmethod=runRemote
then it runs my tests, and displays the test report.richard.herbert
08/26/2022, 1:42 PMtestbox.system.BaseSpec
it gets access to the runRemote
method which you add to your url, that then handles the processing and presentation of the test results.Niek
09/06/2022, 4:37 PMJim Priest
09/08/2022, 5:05 PMjoechastain
09/19/2022, 11:46 AMgetRequestContext().setValue( "employeeName", "Joseph Chastain" );
before the execute
call. I know I can get the rendered results page and check for various things with expect( event.getRenderedContent() ).toInclude( "whatever" );
But I'm hoping I can get specific values that are calculated in the handler. It looks like I can do this if I stored them in the PRC scope with event.getPrivateCollection()
but I don't typically use the PRC scope. I pass the values to the results view via the args
param in the event.setView()
call in the handler. Is there a way to get the values in the args param in the test? Or do I need to start using the PRC scope if I want to do this? I checked the docs but, if there is anything, I didn't see it. Appreciate any insights on this. Thanks.