示例#1
0
# openWNS is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

import wnsbase.playground.Core
import Testing

core = wnsbase.playground.Core.getCore()

if not core.hasPlugin("Testing"):
    core.registerPlugin("Testing")

    runtestsCommand = Testing.RunTestsCommand()

    runlongtestsCommand = Testing.RunLongTestsCommand()

    memcheckCommand = Testing.MemcheckCommand()

    core.registerCommand(runtestsCommand)

    core.registerCommand(runlongtestsCommand)

    core.registerCommand(memcheckCommand)