alsatian

v3.0.1
TypeScript and JavaScript testing framework for beautiful and readable tests
test framework test framework TypeScript JavaScript babel alsatian decorators annotations and 14 more...

build

tsc

clean

rimraf dist

publish-nightly

npm run build && node ./dist/scripts/build-nightly

prepublishOnly

npm run clean && npm test && npm run build

postpublish

node ./dist/scripts/tag-release

lint

npm run lint:code && npm run lint:tests

lint:code

tslint "./**/*.ts" --exclude "./**/*.d.ts" --exclude "./tap-bark/**/*.ts" --exclude "./test/**/*.ts" --exclude "./node_modules/**/*.ts"

lint:tests

tslint --config "./tslint.test.json" "./test/**/*.ts" --exclude "./**/*.d.ts"

lint:fix

npm run lint:code -- --fix & npm run lint:tests -- --fix

pretest

npm run build

test

npm run lint && npm run check-coverage && npm run integration-tests

unit-tests

node ./dist/cli/alsatian-cli.js "./dist/test/unit-tests/**/*.spec.js"

check-coverage

nyc --reporter=lcov --reporter=html npm run unit-tests -- --hide-progress && npm run output-test-coverage

output-test-coverage

nyc report

install-self

npm link && npm link alsatian

build:integration-tests

tsc -p "./test/integration-tests"

integration-tests

npm run install-self && npm run build:integration-tests && npm run cli-integration-tests && npm run node-integration-tests && npm run tsnode-integration-tests && npm run babel-integration-tests && npm run expect-extension-integration-tests

expect-extension-integration-tests

alsatian "./dist/test/integration-tests/extending-expect/**/*.spec.js"

cli-integration-tests

alsatian "./dist/test/integration-tests/cli/runner"

tsnode-integration-tests

ts-node "./test/integration-tests/ts-node/runner.ts"

node-integration-tests

node "./dist/test/integration-tests/node/runner"

debug-unit-tests

node-debug ./cli/alsatian-cli.js "./dist/test/unit-tests/**/*.spec.js"

build-es6-tests

babel test/integration-tests/javascript/test-sets -d dist/test/integration-tests/javascript/test-sets

babel-integration-tests

npm run build-es6-tests && alsatian "./dist/test/integration-tests/javascript/babel/babel-compatibility.spec"

typescript-integration-tests

alsatian "./dist/test/integration-tests/typescript/compile.spec"

selenium-integration-tests

alsatian "./dist/test/integration-tests/selenium/**/*.spec.js"

Metadata

  • MIT
  • >=4.0.0
  • James Richford
  • released 8/24/2019

Downloads

Maintainers