Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Development tools > example_run

example_run

Launch the examples found in help pages.

Calling Sequence

example_run()
example_run(moduleNames)
example_run(moduleNames, functionNames)
example_run(moduleNames, functionNames, language)
example_run(moduleNames, functionNames, language, testrunOptions, testrunExportToFile)

Arguments

moduleNames

a string or a string vector: the name(s) of the modules to test. Default value is the value returned by getmodules().

functionNames

a string or a string vector: the name(s) of the functions to test. If not given, all help pages of the module(s) will be tested.

language

a string: the language of the help pages to test. Default value is "en_US".

testrunOptions

Used as third input argument for test_run.

testrunExportToFile

Used as forth input argument for test_run.

Description

This function extracts the examples given in help pages and run them using test_run.

Example

if ~isempty(ls("SCI/modules/xml/help/en_US/*.xml")) then // Help XML sources must be available for this example
    example_run("xml")
    example_run("core", "insertion")
    example_run("core", ["insertion"; "extraction"])
    example_run("core", "insertion", "en_US")
end

See Also

History

ВерсияОписание
5.4.0 Function example_run introduced.
Report an issue
<< bench_run Development tools test_run >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 14:01:18 CEST 2014