Running a test suite from a command prompt
Compiling resources required for running tests suites from a command prompt
Test suites can be run using the gwb runCucumberSuite command. However,
before this command can be used, you must compile resources needed by the processes that
gwb runCucumberSuite uses. This is done by first executing the
gwb compile command from the application directory. For example:
gwb compile
Typically, you need to execute this command only once. You typically do not need to execute it prior to each test. However, these is no harm in executing this command multiple times.
If a test execution fails with a java.lang.IllegalStateException that
starts "no modules found at...", you may need to execute or re-execute gwb
compile.
Running tests suites from a command prompt
Once the necessary resources have been compiled, you can run a test suite from a command prompt by executing the following from the application directory:
gwb runCucumberSuite -Dsuite=pathToSuite.suiteName
For example:
gwb runCucumberSuite -Dsuite=gw.suites.CalendarAdminSuite
This command compiles and runs the feature files in the specified test suite.
ArrayOutOfBounds exception. As a workaround, if
there is a running test server, stop it before executing the test suite.Viewing test results
Behavior Testing Framework generates information on the test results. You can view these results by navigating to modules/configuration/build/reports/tests/executeCucumberSuite and clicking index.html.
