Although it is documented that when the command line option is used, the inclusion filters declared in the build script are ignored.This feature is not implemented actually. When --tests arguments are set, Test's patternSet will be set to an "empty read-only set" so that include/exclude defined in build are disabled. This fix causes an extra problem that PatternSet.copyFrom throws a ClassCastException because it assumes copyFrom always receives a PatternSet. Therefore, PatternSet.copyFrom is slightly refined.
An unit test and an integration test have been provided.