Coder Social home page Coder Social logo

Comments (11)

viankakrisna avatar viankakrisna commented on June 4, 2024

To avoid issue like #21

from autodll-webpack-plugin.

asfktz avatar asfktz commented on June 4, 2024

I'm not familiar with fixtures, but it sounds exactly like what I was looking for.

Can you please tell me more about it?

from autodll-webpack-plugin.

viankakrisna avatar viankakrisna commented on June 4, 2024

Taken from here

A test fixture is a fixed state of a set of objects used as a baseline for running tests. The purpose of a test fixture is to ensure that there is a well known and fixed environment in which tests are run so that results are repeatable.

from autodll-webpack-plugin.

viankakrisna avatar viankakrisna commented on June 4, 2024

I'm new to this testing world (haven't yet set it up from scratch), so I hope I don't use the wrong term here 😄

Basically, it's a file/set of file that we run our test for, to test multiple real world scenario.

from autodll-webpack-plugin.

asfktz avatar asfktz commented on June 4, 2024

Looks like something I need to dive into 😄
Will do.

from autodll-webpack-plugin.

viankakrisna avatar viankakrisna commented on June 4, 2024

I think this looks more like an e2e test, I don't know if we should use examples as fixtures or written it separately. The test looks like this https://github.com/viankakrisna/autodll-webpack-plugin/blob/1d5979f96a556764fd862410110814beb2e7643f/specs/features.spec.js

from autodll-webpack-plugin.

viankakrisna avatar viankakrisna commented on June 4, 2024

Possible e2e cases to be added:

Integration with other webpack plugins:

  • SWPrecache
  • ManifestPlugin
  • ExtractTextPlugin

This is what commonly used plugins, at least, it used in CRA. If we can write tests and manage compatibility with it, surely it would boost the confidence level to be used in it :)

from autodll-webpack-plugin.

asfktz avatar asfktz commented on June 4, 2024

I started to work on it.
This article looks interesting: https://blog.iansinnott.com/testing-webpack-plugins/

from autodll-webpack-plugin.

viankakrisna avatar viankakrisna commented on June 4, 2024

Great! thanks for sharing it 👍

from autodll-webpack-plugin.

asfktz avatar asfktz commented on June 4, 2024

Of Course (:

from autodll-webpack-plugin.

asfktz avatar asfktz commented on June 4, 2024

Done! Thanks for convincing me to add it @viankakrisna, it turns out to be very useful.

from autodll-webpack-plugin.

Related Issues (20)

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.