All Projects β†’ ddneat β†’ tropic

ddneat / tropic

Licence: Apache-2.0 License
🍍 Test Runner Library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to tropic

Baretest
An extremely fast and simple JavaScript test runner.
Stars: ✭ 364 (+1155.17%)
Mutual labels:  tap, mocha, jest, test-runner, test-framework
Zunit
A powerful testing framework for ZSH projects
Stars: ✭ 140 (+382.76%)
Mutual labels:  tap, unit-testing, test-runner, test-automation, test-framework
Enzyme
JavaScript Testing utilities for React
Stars: ✭ 19,781 (+68110.34%)
Mutual labels:  mocha, jest, test-runner, test-runners
awesome-javascript-testing
πŸ”§ Awesome JavaScript testing resources
Stars: ✭ 28 (-3.45%)
Mutual labels:  unit-testing, mocha, jest, tape
Ava
Node.js test runner that lets you develop with confidence πŸš€
Stars: ✭ 19,458 (+66996.55%)
Mutual labels:  tap, unit-testing, test-runner, test-framework
eat
Json based scenario testing tool(which can have test for functional and non-functional)
Stars: ✭ 41 (+41.38%)
Mutual labels:  unit-testing, test-runner, test-automation, test-framework
MAQS
Magenic's automation quick start
Stars: ✭ 46 (+58.62%)
Mutual labels:  selenium, test-automation, test-framework
Qtools
QTools collection of open source tools for embedded systems development on Windows, Linux and MacOS
Stars: ✭ 64 (+120.69%)
Mutual labels:  unit-testing, test-automation, test-framework
Redux Actions Assertions
Simplify testing of redux action and async action creators
Stars: ✭ 177 (+510.34%)
Mutual labels:  unit-testing, mocha, jest
playwright-fluent
Fluent API around playwright
Stars: ✭ 71 (+144.83%)
Mutual labels:  test-runner, test-automation, test-framework
Jasmine Matchers
Write Beautiful Specs with Custom Matchers for Jest and Jasmine
Stars: ✭ 552 (+1803.45%)
Mutual labels:  unit-testing, jest, karma
Istanbuljs
monorepo containing the various nuts and bolts that facilitate istanbul.js test instrumentation
Stars: ✭ 656 (+2162.07%)
Mutual labels:  tap, mocha, jest
angular-unit-testing-examples
Showroom for different Angular unit testing concepts
Stars: ✭ 19 (-34.48%)
Mutual labels:  unit-testing, jest, karma
angular-karma test-explorer
vscode extension for easy angular testing and debugging
Stars: ✭ 67 (+131.03%)
Mutual labels:  unit-testing, karma, test-runner
Snap Shot
Jest-like snapshot feature for the rest of us, works magically by finding the right caller function
Stars: ✭ 170 (+486.21%)
Mutual labels:  unit-testing, mocha, jest
oletus
Minimal ECMAScript Module test runner
Stars: ✭ 43 (+48.28%)
Mutual labels:  unit-testing, test-runner, test-framework
selenified
The Selenified Test Framework provides mechanisms for simply testing applications at multiple tiers while easily integrating into DevOps build environments. Selenified provides traceable reporting for both web and API testing, wraps and extends Selenium calls to more appropriately handle testing errors, and supports testing over multiple browser…
Stars: ✭ 38 (+31.03%)
Mutual labels:  selenium, test-automation, test-framework
Telegraf-Test
Telegraf Test - Simple Test ToolKit of Telegram Bots
Stars: ✭ 22 (-24.14%)
Mutual labels:  mocha, test-automation, test-framework
Sazerac
Data-driven unit testing for Jasmine, Mocha, and Jest
Stars: ✭ 322 (+1010.34%)
Mutual labels:  unit-testing, mocha, jest
Dredd
Language-agnostic HTTP API Testing Tool
Stars: ✭ 3,770 (+12900%)
Mutual labels:  unit-testing, test-runner, test-framework

Tropic Test Runner

Tropic offers following features:

  • Async testing with async/await, promises or done callback
  • Execute certain tests by using only and skip
  • Watchmode
  • Colorful logs
  • No global variables
  • Isolated test execution
  • Transpile/Compile code with e.g.: babel, ES2017
  • Lightweight, No additional dependencies

Contents

Example

const test = require('tropic');
const assert = require('assert');

test('title', () => {
  assert.equal(1 + 2, 3)
});

test.only('title test.only', () => {
  assert.equal(1 + 2, 3)
});

test.skip('title test.skip', () => {
  assert.equal(1 + 2, 3)
});

test('title done callback', (done) => {});
test('title promise', () => Promise.resolve());
test('title async-await', async () => await () => {});

Usage

You can install tropic using npm:

npm install --save-dev tropic

After you created your first test file (e.g. test.spec.js) you might just run tropic like the following:

tropic **/*.spec.js --watch

Usage with babel / ES2019:

npm install @babel/register --save-dev
tropic **/*.spec.js --require=@babel/register

Note: Please verify that you have a .babelrc or babel config within your package.json. Also make sure that you have all plugins/presets in installed and configured.

Options

--watch

Starts a watcher for the current directory. On file changes the tests will be automaticly executed again. In case there is already an execution running, the running execution will be canceled. The watcher ignores the node_modules directory, dotfiles and hidden directories like .idea.

--require

Following an example using @babel/register:

tropic **/*.spec.js --require=@babel/register

Multiple modules are also supported:

tropic **/*.spec.js --require=@babel/register,./custom-local-script.js

--timeout

Sets the threshold of the accepted test execution duration in milliseconds. [Default 200 ms]

tropic **/*.spec.js --timeout=20

Contribute

  • Feel free to open an issue or even a pull request
  • To run one single integration test just go for node cli test/assert
  • Check the package.json for further scripts
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].