Giter Club home page Giter Club logo

test's Introduction

AthennaIO ๐Ÿฆด

The Athenna scaffold project used by 'athenna new project' command to create your project.

GitHub followers GitHub stars

Buy Me A Coffee

GitHub language count Repository size License Commitizen

Links

For project documentation click here. If something is not clear in the documentation please open an issue in the documentation repository

Contributing

If you want to contribute to this project, first read the CONTRIBUTING.MD file. It will be a pleasure to receive your help.


With ๐Ÿ’œ by Athenna community

test's People

Contributors

jlenon7 avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

test's Issues

[Feature]: Add `Mock.fake()` method

๐Ÿš€ Feature Proposal

Add the Mock.fake() method to avoid using Mock.sandbox.fake() every time.

Motivation

Add the Mock.fake() method to avoid using Mock.sandbox.fake() every time.

Example

No response

[Feature]: Tests that starts with PIN should be pinned

๐Ÿš€ Feature Proposal

Tests that start with PIN... should be pinned.

Motivation

Help the developer to easily pin his tests.

Example

import { Test } from '@athenna/test'

export class MyTest extends Test {
  async PINshouldRunBecauseIsPinned({ assert }) {
    assert.equal(2, 1 + 1)
  }

  async shouldNotRunBecauseIsNotPinned({ assert }) {}
}

[Feature]: Move @japa/assert and @japa/runner to devDependencies

๐Ÿš€ Feature Proposal

The @japa/assert and @japa/runner are development dependencies and should not be inside dependencies of package.json. We should move it to devDependencies.

Motivation

Remove unnecessary dependencies to perform better in production.

Example

No response

[Feature]: Integrate Sinon package

๐Ÿš€ Feature Proposal

Integrate Sinon package somehow with @athenna/test

Motivation

Athenna can only mock ioc container dependencies nowadays. And when mocking a dependency of the ioc container, you need to implement the entire dependency. Sinon will help to mock stuffs outside of the ioc container and mock particular methods only of the dependencies.

Example

No response

[Bug]: Package @athenna/core being used as dependency

Version

1.4.6

Steps to reproduce

Create a new Athenna project with athenna new... command.
Install a different version of @athenna/core package. Example: npm install @athenna/[email protected]
Now inside of node_modules/@athenna/core we will have the version 1.0.0 of @athenna/common. But inside node_modules/@athenna/test we will have the version 2.1.2 of @athenna/core.

Expected behavior

I expect that when I install the version 1.0.0 of @athenna/core package, that @athenna/test package uses the same version.

Actual behavior

Two versions of the packages are installed, specifics for @athenna/test and the other for the project. This means that I can't choose which version of the packages I want to use globally in the project.

Additional context

No response

Environment

System:
    OS: Linux 5.14 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
    Memory: 6.19 GB / 15.03 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm

[Feature]: Update version to 3.0.0

๐Ÿš€ Feature Proposal

The version of this package needs to be updated to 3.0.0.

Motivation

We are going to start versioning the Athenna packages using Semver. All packages of Athenna will be updated to version 3.0.0 to start following Semver rules.

Example

No response

[Feature]: Use a different behavior to runOnly getter

๐Ÿš€ Feature Proposal

The getter runOnly should pin all the tests inside the class if it returns: ['*']. If runOnly is not declared, or it returns null or undefined, then we are not going to set pin() method in tests.

If it returns an array with the tests names, it will have the same behavior (pin the tests by name).

Motivation

Run the entire test group easily.

Example

No response

[Bug]: Remove configuration clear from Test command

Version

3.0.1

Steps to reproduce

The configuration cannot be cleared because some exception might occur and the exception channel log needs to exist to do show the error.

Expected behavior

I expect to run the tests normally and see the real exception instead of channel not found exception.

Actual behavior

NotImplementChannelException is throw because the exception channel does not exist.

Additional context

No response

Environment

System:
    OS: Linux 5.14 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz
    Memory: 4.46 GB / 15.03 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm

[Feature]: create the install test command

๐Ÿš€ Feature Proposal

This feature will add the install test command:

node artisan install:test

Motivation

This command will be responsible to install the package @athenna/test and configure all it files inside the project.

Example

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.