Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

View file

@ -0,0 +1,29 @@
Use jasmine-spec-reporter with Node
===================================
The `jasmine-spec-reporter` can be used to enhance your
[jasmine node](https://github.com/jasmine/jasmine-npm) tests execution report.
## Configuration
Create a `spec/helpers/reporter.js` file with the following content:
```javascript
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.getEnv().clearReporters(); // remove default reporter logs
jasmine.getEnv().addReporter(new SpecReporter({ // add jasmine-spec-reporter
spec: {
displayPending: true
}
}));
```
Then run your tests!
## Example
This directory is setup as a working example, so you can inspect the `package.json`,
the `spec` directory, and you can see it all work by issuing the following commands:
npm install
npm test

View file

@ -0,0 +1,14 @@
{
"name": "node-example",
"version": "1.0.0",
"description": "a node example",
"scripts": {
"test": "jasmine"
},
"author": "Bastien Caudan",
"license": "Apache-2.0",
"dependencies": {
"jasmine": "file:../../node_modules/jasmine",
"jasmine-spec-reporter": "file:../../"
}
}

View file

@ -0,0 +1,11 @@
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.getEnv().clearReporters(); // remove default reporter logs
jasmine.getEnv().addReporter(new SpecReporter({ // add jasmine-spec-reporter
spec: {
displayPending: true,
},
summary: {
displayDuration: false,
}
}));

View file

@ -0,0 +1,56 @@
describe('first suite', () => {
it('should be ok', () => {
expect(true).toBe(true);
});
it('should be pending', () => {
pending('will work soon');
expect(true).toBe(true);
});
it('should failed', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
});
describe('second suite', () => {
xit('should be pending', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
describe('first child suite', () => {
describe('first grandchild suite', () => {
it('should failed', () => {
expect(true).toBe(false);
expect(true).toBe(false);
expect(true).toBe(true);
});
it('should failed', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
});
describe('second grandchild suite', () => {
it('should failed', () => {
expect(true).toBe(false);
});
it('should be ok', () => {
expect(true).toBe(true);
});
});
});
});

View file

@ -0,0 +1,11 @@
{
"spec_dir": "spec",
"spec_files": [
"**/*[sS]pec.js"
],
"helpers": [
"helpers/**/*.js"
],
"stopSpecOnExpectationFailure": false,
"random": false
}