CDAT / jupyter-vcdat

A Jupyter Lab extension based on vCDAT.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

Dev improvements #152

Closed downiec closed 4 years ago

downiec commented 4 years ago

This PR includes some updates to the Selenium tests suite and also includes updates to the package.json by moving some of the scripts out and incorporating their functionality within a 'tasksfile.ts'. The tasksfile provides better documentation, readability, and improved functionality for running automated development tasks when compared to running scripts within the package.json.

To run a task, you would use: 'npx task task_name' By running: 'npx task --help', you will see documentation on available automated tasks and what they do. And to get help for a specific task, you would use: 'npx task task_name --help'

Included in the task file are functions for setting up and running selenium automated testing.

Current available tasks: checkVersion - Compares package.json version with the version published on npm and exits with error if the published version is newer. format - Format source files using prettier-tslint installTestTools - Installs dependencies for running Selenium tests locally. lint - Performs linting operations on source files. test - Runs Selenium automated tests locally. If no tests are specified, all available tests will be run. If no browser options are specified, both browsers will be used. updateTags - Will find and update all className tags in source files.

downiec commented 4 years ago

Yes the firefox tests are commented out for now, until I can figure out why they won't pass on circleci (they do pass when run locally).