Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igorfachini/mocha-test-example
Separate mocha tests in multiple files and share result by test to another test in another file.
https://github.com/igorfachini/mocha-test-example
mochajs modules testing unittest
Last synced: 3 days ago
JSON representation
Separate mocha tests in multiple files and share result by test to another test in another file.
- Host: GitHub
- URL: https://github.com/igorfachini/mocha-test-example
- Owner: IgorFachini
- License: mit
- Created: 2022-08-12T02:35:01.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T02:53:37.000Z (over 2 years ago)
- Last Synced: 2024-11-06T13:56:35.394Z (about 2 months ago)
- Topics: mochajs, modules, testing, unittest
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Mocha Unit Test
Exemplo não oficial de importar varios arquivos de testes em um unico arquivo.
Alem de poder passar resultado de testes para outros testes de outro arquivos.## Setup and Run
Executar
```
yarn
yarn mocha
````# Screenshots
- Estrutura do código visual![Estrutura do código visual](./doc/mocha%20test%20structure.png)
- Exemplo do Resultado no terminal
![Exemplo do Resultado no terminal](./doc/full%20terminal%20test.png)