Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Commands to complete

  • nose

  • pytest

  • unit2

  • unittest

...

Code Block
sl-python build {--token  <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} --workspacepath <workspacepath>  --scm {git|none} [--projectRoot <folder>] [--excludedpaths <excludedpaths>] [--uniqueModuleId <id>] [--es-modules] [--jobName <jobName>] [--logsUrl <logsUrl>] [--dependenciesFile <dependenciesFile>] [--instrumentForBrowsers --outputpath <folder> [--downloadAgent {true|false}] [--instrumentationOnly] [--labid <labid>]] [--proxy <proxy>] [--failbuild {true|false}] [--scmBaseUrl --scmProvider {github|gitlab|bitbucket} --scmVersion] [--babylonPlugins decorators-legacy]

token

scm

Parameter

Description

Code Block

Access token generated from the SeaLights server

code

tokenfile

Path to file containing access token generated from the SeaLights server

code

buildsessionid

Session ID of configuration created

code

buildsessionidfile

Path to file containing the Session ID of configuration created

code

workspacepath

Path to the source workspace

Code Block
excludedpaths

Comma-separated list of files to exclude from scan

Supports wildcards (* = any string, ? = any character). For example: '*-with-dependencies.jar , bad-bad?.war, *-source.jar'

Code Block
projectRoot

Path to the root of the project. Usually where the src folder resides

Code Block
uniqueModuleId

Unique name when providing more than one build scan per build

es-modules

Indicates that you use es6 modules

Code Block
jobName

Name of Jenkins job

Code Block
logsUrl 

Path to Jenkins log folder

Code Block

Source control used

Current options are: git, none

Code Block
dependenciesFile 

A path to a json file that is in the following format:
[{"appName":"","branch":"","build":""}, {...}]

Code Block
instrumentForBrowsers

Instrument the JS files for providing browser front-end coverage information. Must be used with the outputpath parameter.

Code Block
downloadAgent

Set this value to 'false' in order to prevent the instrumented javascript to try and download the browser test listener (for example, when using 'Karma').

Code Block
instrumentationOnly

Only instrument the javascript files, without sending the build information to the SeaLights server

Code Block
outputpath

Folder to generate the instrumented JS files in when using the instrumentForBrowsers parameter

Code Block
labid

Unique ID for a set of test labs in case multiple labs are running simultaneously or for an integration build.
This needs to be done during the instrumentation process when using the instrumentForBrowsers option

Code Block
proxy

Address of proxy to run connection through

Code Block
failbuild

Exit with an error code if an error is encountered (Default: false)

scmProvider

scmprovider

The provider name of your Source Control Management (SCM) tool.
Values: Github, Bitbucket and Gitlab (Default is Github)

scmBaseUrl scmbaseurl

The URL to the repository which contains the code.

If not provided, the url of the remote GIT origin will be used

Example: https://my.bitbucket.com/projects/ABCD/repos/XYZ/browse/A1

scmVersionscmversion

The version of your Source Control Management (SCM) tool. If not providedleft blank, cloud version is assumed

babylonPlugins 

When there are decorators in the code, you should use this flag with the "decorators-legacy" value. Otherwise, specify the version of your on-premise server.

proxy

Address of proxy to run connection through

help

Show Help message and exit.

Test Listener

Starting a test stage

...

Code Block
sl-python uploadReports {--token  <token> | --tokenfile <file>} {--buildsessionid <id> | --buildsessionidfile <file>} {--reportFilereportfile <reportFile> | --reportFilesFolderreportfilesfolder <reportFilesFolder>} [--hasmorerequests {False|True}] [--labid <labid>] [--source <source>] [--type <type>] [--proxy <proxy>] [--help]

...