RunUnitTest
RunUnitTest[symbol]⟹summary
returns the test summary from executing all unit tests for symbol.
RunUnitTest[context]⟹summaries
returns an assocation of test summaries for each symbol in context.
RunUnitTest[fileName]⟹summaries
returns an association of test summaries for each symbol whose tests are defined in fileName.
RunUnitTest[symbols]⟹summaries
returns an association of test summaries for each of the given symbols.
RunUnitTest[contexts]⟹groupSummaries
returns an association of contexts -> symbols in each context -> test summaries for each symbol in that context.
RunUnitTest[fileNames]⟹groupSummaries
returns an association of fileNames -> symbols in each test file -> test summary for each symbol in that test file.
RunUnitTest[association]⟹summaries
returns an association of test summaries for each of the keys given in association.
Examples
Basic Examples (4)
For a symbol with tests, returns result summary information:
For a list of symbols, returns an association of symbols to result summaries:
For a context, runs the unit tests for all symbols in that context and returns an association of their result summaries:
For a single file, runs unit tests for all symbols whose unit tests are defined in that file:
Additional Examples (2)
Options (21)
Association (2)
Category (2)
OutputFormat (8)
OutputFormat->SingleBoolean when given an Association as input, returns a single True/False:
OutputFormat->Boolean when given an Association as input, returns pass/fail as the value instead of the test summary:
OutputFormat->Boolean when given a list of symbols, returns the pass/fail results instead of the summaries:
OutputFormat->SingleBoolean when given a list of symbols, returns a single pass/fail result:
OutputFormat->Boolean when given a single symbol, returns a single pass/fail result:
OutputFormat->SingleBoolean when given a single symbol, returns a single pass/fail result:
OutputFormat->Boolean when given a context, returns the pass/fail results instead of the summaries:
OutputFormat->SingleBoolean when given a context, returns the pass/fail results instead of the summaries:


