All Projects → AmpMe → parse-server-test-runner

AmpMe / parse-server-test-runner

Licence: Apache-2.0 license
A tool for programmatically starting Parse Server

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to parse-server-test-runner

Rxjs Marbles
An RxJS marble testing library for any test framework
Stars: ✭ 267 (+1383.33%)
Mutual labels:  jasmine, mocha
ts-snippet
A TypeScript snippet compiler for any test framework
Stars: ✭ 29 (+61.11%)
Mutual labels:  jasmine, mocha
Sazerac
Data-driven unit testing for Jasmine, Mocha, and Jest
Stars: ✭ 322 (+1688.89%)
Mutual labels:  jasmine, mocha
Approvals.NodeJS
Approval Tests implementation in NodeJS
Stars: ✭ 79 (+338.89%)
Mutual labels:  jasmine, mocha
Testdeck
Object oriented testing
Stars: ✭ 206 (+1044.44%)
Mutual labels:  jasmine, mocha
generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (-27.78%)
Mutual labels:  jasmine, mocha
Webdriverio
Next-gen browser and mobile automation test framework for Node.js
Stars: ✭ 7,214 (+39977.78%)
Mutual labels:  jasmine, mocha
parse-react
[EXPERIMENTAL] React, React Native, and React with SSR (e.g. Next.js) packages to interact with Parse Server backend
Stars: ✭ 58 (+222.22%)
Mutual labels:  parse, parse-server
Feathers Vue
A boiler plate template using Feathers with Email Verification, Vue 2 with Server Side Rendering, stylus, scss, jade, babel, webpack, ES 6-8, login form, user authorization, and SEO
Stars: ✭ 195 (+983.33%)
Mutual labels:  jasmine, mocha
Karma
Spectacular Test Runner for JavaScript
Stars: ✭ 11,591 (+64294.44%)
Mutual labels:  jasmine, mocha
mutest
A BDD testing framework for C, inspired by Mocha
Stars: ✭ 22 (+22.22%)
Mutual labels:  jasmine, mocha
opensource
Collection of Open Source packages by Otherwise
Stars: ✭ 21 (+16.67%)
Mutual labels:  parse, parse-server
parse-cloud-class
Extendable way to set up Parse Cloud classes behaviour
Stars: ✭ 40 (+122.22%)
Mutual labels:  parse, parse-server
eslint-config-adjunct
A reasonable collection of plugins to use alongside your main esLint configuration
Stars: ✭ 39 (+116.67%)
Mutual labels:  jasmine, mocha
ParseCareKit
Securely synchronize any CareKit 2.1+ based app to a Parse Server Cloud. Compatible with parse-hipaa.
Stars: ✭ 28 (+55.56%)
Mutual labels:  parse, parse-server
Public
Repository for wallaby.js questions and issues
Stars: ✭ 662 (+3577.78%)
Mutual labels:  jasmine, mocha
Teaspoon
Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
Stars: ✭ 1,443 (+7916.67%)
Mutual labels:  jasmine, mocha
Babel Plugin Tester
Utilities for testing babel plugins
Stars: ✭ 228 (+1166.67%)
Mutual labels:  jasmine, mocha
eslint-plugin-no-only-tests
ESLint rule for catching focused/only test blocks
Stars: ✭ 67 (+272.22%)
Mutual labels:  jasmine, mocha
djburger
Framework for safe and maintainable web-projects.
Stars: ✭ 75 (+316.67%)
Mutual labels:  parse

Parse Server Test Runner

npm version

This library allows Parse Server to be set up programmatically for testing purposes.

Example

This is an example of a Jasmine spec using parse-server-test-runner. The timeout is set to 2 minutes because downloading MongoDB might take a few minutes.

const { startParseServer, stopParseServer, dropDB } = require('parse-server-test-runner');

// ...
describe('my spec', () => {
   beforeAll((done) => {
    const appId = 'test';
    const masterKey = 'test';
    const javascriptKey = 'test';

    startParseServer({ appId, masterKey, javascriptKey })
      .then(() => {
        Parse.initialize(appId, masterKey, javascriptKey);
        Parse.serverURL = 'http://localhost:30001/1';
      })
      .then(done).catch(done.fail);
  }, 100 * 60 * 2);

  afterAll((done) => {
    stopParseServer()
      .then(done).catch(done.fail);
  });

  beforeEach((done) => {
    dropDB()
      .then(done).catch(done.fail);
  });

  it('should work', (done) => {
    const q = new Parse.Query('_Installation')
    q.limit(5)
      .find({ useMasterKey: true })
      .then(console.log)
      .then(done).catch(done.fail);
  });
});
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].