Skip to content

Core component of renew-js for displaying and modifying drawings

License

Notifications You must be signed in to change notification settings

renew-js/renew-lib

Folders and files

NameName
Last commit message
Last commit date
Apr 13, 2019
Aug 1, 2020
Aug 2, 2020
Jan 15, 2019
Jan 23, 2019
Mar 12, 2019
Jan 21, 2019
Jun 18, 2019
Mar 26, 2019
Apr 13, 2019
Feb 11, 2019
Mar 30, 2019
Dec 10, 2019
Mar 11, 2019

Repository files navigation

Build Status codecov

renew-lib

Renew is a multi-formalism editor and simulator that provides a flexible modeling approach. With renew-js we want to improve the user interaction with the editor. To archive a multi-formalism editor and simulator we base the formalisms on metamodels and provide a plugin-architecture to extend domain specific languages.

Test your code

For each module there should be a Software test. You mainly try to test the different components provider, behavior, commands, tools and rules. The test begins with a module definition and the Target specification.

describe('modules/{name} - {Target}', () => { /** ... */ });

Then you define the Test environment only with the minimum amount of dependencies.

let diagram;
beforeEach(() => diagram = new Tester({ modules: [ /** ModuleName */ ] }));

Afterwards you can define more dependencies that should be dependency injected and also create some shapes for a specific scenario later on. You should write a 'it should be defined' test to be sure your module is loading properly. Then you begin describing the Tests for the different components like for example:

describe('Provider', () => { /** ... */ });

License

MIT

About

Core component of renew-js for displaying and modifying drawings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published